Skip to content

Commit b84bc65

Browse files
committed
Fix pattern for classes extending SoapClient.
The current pattern has two problems: - It does not match \SoapClient - It matches any non-word characters after SoapClient. Thus line breaks and the beginning of docblocks are included and replaced.
1 parent a68b0f6 commit b84bc65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VCR/LibraryHooks/Soap/Filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Filter extends AbstractFilter
1515

1616
private static $patterns = array(
1717
'@new\s+\\\?SoapClient\W*\(@i',
18-
'@extends\s+SoapClient\W*@i',
18+
'@extends\s+\\\?SoapClient@i',
1919
);
2020

2121
/**

0 commit comments

Comments
 (0)