PHP Static Analysis Tool - discover bugs in your code without running it!
40 matches across 4 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | website/errors/impure.functionCall.md | 13 | function computeAndLog(int $value): int |
| LOW | website/errors/impure.functionCall.md | 49 | function computeAndLog(int $value): int |
| LOW | …oping-extensions/additional-constructors-extensions.md | 30 | public function getAdditionalConstructors(ClassReflection $classReflection): array; |
| LOW | …oping-extensions/additional-constructors-extensions.md | 48 | public function getAdditionalConstructors(ClassReflection $classReflection): array |
| LOW | website/src/developing-extensions/closure-extensions.md | 25 | public function getTypeTypeFromMethodCall( |
| LOW | website/src/developing-extensions/closure-extensions.md | 71 | public function getClosureThisTypeFromMethodCall( |
| LOW | …developing-extensions/dynamic-throw-type-extensions.md | 25 | public function getThrowTypeFromMethodCall( |
| LOW | …developing-extensions/dynamic-throw-type-extensions.md | 64 | public function getThrowTypeFromMethodCall( |
| LOW | …developing-extensions/parameter-out-type-extensions.md | 27 | public function getParameterOutTypeFromMethodCall( |
| LOW | …developing-extensions/parameter-out-type-extensions.md | 70 | public function getParameterOutTypeFromMethodCall( |
| LOW | …c/developing-extensions/class-reflection-extensions.md | 54 | public function canChangeTypeAfterAssignment(): bool; |
| LOW | …c/developing-extensions/restricted-usage-extensions.md | 86 | public function isRestrictedClassNameUsage( |
| LOW | …c/developing-extensions/restricted-usage-extensions.md | 137 | public function isRestrictedPropertyUsage( |
| LOW | …c/developing-extensions/restricted-usage-extensions.md | 169 | public function isRestrictedClassConstantUsage( |
| LOW | …c/developing-extensions/restricted-usage-extensions.md | 199 | public function isRestrictedFunctionUsage( |
| LOW | …bsite/src/_posts/preprocessing-ast-for-custom-rules.md | 75 | private function isUnhandledMatchErrorCaught(Node $node): bool |
| LOW | …bsite/src/_posts/preprocessing-ast-for-custom-rules.md | 113 | private function isUnhandledMatchErrorCaught(Node $node): bool |
| LOW | website/src/writing-php-code/phpdocs-basics.md | 130 | function acceptCallableAndCallLater(callable $cb): void |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | website/infra/lib/website-stack.ts | 21 | readonly testDomain: string; |
| LOW | website/infra/functions/phpstan-org-edge.js | 1 | // CloudFront Function (runtime cloudfront-js-2.0), viewer-request. |
| LOW | website/scripts/build-wasm.sh | 1 | #!/usr/bin/env bash |
| LOW | website/src/js/codeMirror.ts | 41 | }), |
| LOW | website/src/js/phpantom/worker.ts | 1 | // Web Worker hosting the PHPantom language server (compiled to wasm32-wasip1) |
| LOW | website/src/js/editor/occurrences.ts | 1 | import {Decoration, DecorationSet, EditorView, ViewPlugin, ViewUpdate, keymap} from '@codemirror/view'; |
| LOW | website/src/js/editor/docBlock.ts | 61 | }; |
| LOW | .github/actionlint.yaml | 1 | self-hosted-runner: |
| LOW | .github/workflows/integration-tests.yml | 401 | setup: | |
| LOW | e2e/symfony-event/config/routes.yaml | 1 | #index: |
| LOW | e2e/symfony-event/config/packages/cache.yaml | 1 | framework: |
| LOW | e2e/undiscoverable-symbols-3/config/routes.yaml | 1 | #index: |
| LOW | e2e/undiscoverable-symbols-3/config/packages/cache.yaml | 1 | framework: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | website/errors/propertyGetHook.noRead.md | 17 | return "John Doe"; |
| LOW | website/errors/propertyGetHook.noRead.md | 50 | - return "John Doe"; |
| LOW | website/errors/propertyGetHook.noRead.md | 76 | - return "John Doe"; |
| LOW | …c/_posts/remembering-and-forgetting-returned-values.md | 165 | $person->setName('John Doe'); |
| LOW | …why-is-instanceof-type-wrong-and-getting-deprecated.md | 54 | Another example of a deprecated check is `instanceof ConstantStringType` which represents a literal string like `'lorem |
| LOW | …why-is-instanceof-type-wrong-and-getting-deprecated.md | 61 | // do something with $type->getValue() (which is 'lorem ipsum') |
| LOW | …why-is-instanceof-type-wrong-and-getting-deprecated.md | 64 | PHPStan 1.10 wants you to use `Type::getConstantStrings(): list<ConstantStringType>`. It's plural because it wants you t |
| LOW | …why-is-instanceof-type-wrong-and-getting-deprecated.md | 64 | PHPStan 1.10 wants you to use `Type::getConstantStrings(): list<ConstantStringType>`. It's plural because it wants you t |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | e2e/symfony-event/config/services.yaml | 1 | # This file is the entry point to configure your own services. |