mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
12 lines
597 B
Diff
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
|