@@ -937,7 +937,7 @@ interface FunctionOrMethodName {
937937 public function getDeclaration (): string ;
938938 public function getArgInfoName (): string ;
939939 public function getMethodSynopsisFilename (): string ;
940- public function getAttributeName (): string ;
940+ public function getNameForAttributes (): string ;
941941 public function __toString (): string ;
942942 public function isMethod (): bool ;
943943 public function isConstructor (): bool ;
@@ -983,7 +983,7 @@ public function getMethodSynopsisFilename(): string {
983983 return implode ('_ ' , $ this ->name ->parts );
984984 }
985985
986- public function getAttributeName (): string {
986+ public function getNameForAttributes (): string {
987987 return strtolower ($ this ->name ->toString ());
988988 }
989989
@@ -1031,7 +1031,7 @@ public function getMethodSynopsisFilename(): string {
10311031 return $ this ->getDeclarationClassName () . "_ {$ this ->methodName }" ;
10321032 }
10331033
1034- public function getAttributeName (): string {
1034+ public function getNameForAttributes (): string {
10351035 return strtolower ($ this ->methodName );
10361036 }
10371037
@@ -3766,7 +3766,7 @@ static function (FuncInfo $funcInfo) use (&$classEntriesWithSensitiveParams) {
37663766 $ functionTable = "CG(function_table) " ;
37673767 }
37683768
3769- $ code .= " zend_mark_function_parameter_as_sensitive( $ functionTable, \"" . $ funcInfo ->name ->getAttributeName () . "\", $ index); \n" ;
3769+ $ code .= " zend_mark_function_parameter_as_sensitive( $ functionTable, \"" . $ funcInfo ->name ->getNameForAttributes () . "\", $ index); \n" ;
37703770 }
37713771
37723772 return $ code ;
@@ -4178,7 +4178,7 @@ function initPhpParser() {
41784178 installPhpParser ($ version , $ phpParserDir );
41794179 }
41804180
4181- spl_autoload_register (function (string $ class ) use ($ phpParserDir ) {
4181+ spl_autoload_register (static function (string $ class ) use ($ phpParserDir ) {
41824182 if (strpos ($ class , "PhpParser \\" ) === 0 ) {
41834183 $ fileName = $ phpParserDir . "/lib/ " . str_replace ("\\" , "/ " , $ class ) . ".php " ;
41844184 require $ fileName ;
0 commit comments