Pleasing PHP8
This commit is contained in:
parent
9747f57658
commit
c74b0e728f
|
@ -8,11 +8,3 @@ env:
|
|||
- COMPOSER_ROOT_VERSION="1.x-dev"
|
||||
- REQUIRE_RECIPE="4.x-dev"
|
||||
- PHPUNIT_TEST=1
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- php: 7.1
|
||||
- php: 7.2
|
||||
- php: 7.3
|
||||
env: PHPCS_TEST=1
|
||||
- php: 7.4
|
||||
|
|
|
@ -87,7 +87,7 @@ abstract class SilverStripeContext extends MinkContext implements SilverStripeAw
|
|||
*/
|
||||
public function __construct(array $parameters = null)
|
||||
{
|
||||
if (!preg_match('/\\FeatureContext$/', get_class($this))) {
|
||||
if (!preg_match('/\\\FeatureContext$/', get_class($this))) {
|
||||
throw new InvalidArgumentException(
|
||||
'Subclasses of SilverStripeContext must be named FeatureContext. Found "' . get_class($this) . '""'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue