rector/patches/better-reflection-php-parser-memoizing-parser.patch

12 lines
597 B
Diff

--- /dev/null
+++ roave/better-reflection/src/SourceLocator/Ast/Parser/MemoizingParser.php
@@ -32,7 +32,7 @@
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint
*/
- public function parse($code, ?ErrorHandler $errorHandler = null) : ?array
+ public function parse(string $code, ?ErrorHandler $errorHandler = null) : ?array
{
// note: this code is mathematically buggy by default, as we are using a hash to identify
// cache entries. The string length is added to further reduce likeliness (although