Pleasing PHP8

This commit is contained in:
Maxime Rainville 2021-03-12 17:00:07 +13:00
parent 9747f57658
commit c74b0e728f
2 changed files with 1 additions and 9 deletions

View File

@ -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

View File

@ -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) . '""'
);