Skip to content

Commit 4d310c0

Browse files
committed
Bug fix: Drupal8 utils not working
The Drupal8 framework setting hadn't been working for quite a while. PR 50 already fixed part of this by adding the namespace, but as the name of class being extended, this would now still not work correctly as it would look for a `PHPCS_SecurityAudit\Security\Sniffs\Drupal8\PHPCS_SecurityAudit\Security\Sniffs\Symfony2\Utils` class. Changing the name of the class being extended to fully qualified, fixes this.
1 parent 1b8a61d commit 4d310c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Security/Sniffs/Drupal8/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace PHPCS_SecurityAudit\Security\Sniffs\Drupal8;
33

4-
class Utils extends PHPCS_SecurityAudit\Security\Sniffs\Symfony2\Utils {
4+
class Utils extends \PHPCS_SecurityAudit\Security\Sniffs\Symfony2\Utils {
55

66
/**
77
* Heavy used function to verify if a token contains user input

0 commit comments

Comments
 (0)