Differentiate die("skip..")
from die()
or exit()
#89
Annotations
6 errors
|
Run phpstan analysis:
lib/SideEffectsDetector.php#L162
Method staabm\SideEffectsDetector\SideEffectsDetector::getFunctionCallSideEffect() never returns 'process_exit' so it can be removed from the return type.
|
Run phpstan analysis:
lib/SideEffectsDetector.php#L378
Method staabm\SideEffectsDetector\SideEffectsDetector::isDieWithSkipMessage() has no return type specified.
|
Run phpstan analysis:
lib/SideEffectsDetector.php#L378
Method staabm\SideEffectsDetector\SideEffectsDetector::isDieWithSkipMessage() has parameter $tokens with no value type specified in iterable type array.
|
Run phpstan analysis:
lib/SideEffectsDetector.php#L378
Out of 9 possible return types, only 8 - 88.8 % actually have it. Add more return types to get over 100 %
|
Run phpstan analysis
Process completed with exit code 1.
|
Loading