Skip to content

Commit

Permalink
[TASK] Handle a few edge cases in v13 phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Jan 25, 2025
1 parent 39acd85 commit 5b3ef99
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
parameters:
ignoreErrors:
-
message: "#^Call to an undefined method TYPO3\\\\CMS\\\\Core\\\\Site\\\\Entity\\\\SiteLanguage\\:\\:getTwoLetterIsoCode\\(\\)\\.$#"
count: 1
path: Classes/ViewHelpers/Page/LanguageMenuViewHelper.php
-
message: "#^Call to an undefined method TYPO3\\\\CMS\\\\Core\\\\Database\\\\Query\\\\QueryBuilder\\:\\:execute\\(\\)\\.$#"
count: 1
path: Classes/Utility/DoctrineQueryProxy.php
-
message: "#^Access to undefined constant TYPO3\\\\CMS\\\\Core\\\\Domain\\\\Repository\\\\PageRepository\\:\\:DOKTYPE_RECYCLER\\.$#"
count: 1
path: Classes/Service/PageService.php
-
message: "#^Cannot call method getLanguageCode\\(\\) on string\\.$#"
count: 1
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ parameters:
- "#(unknown class|invalid( return)? type) TYPO3\\\\CMS\\\\Extbase\\\\Domain\\\\Model\\\\FrontendUser(Group)?#"
- "#(unknown class|invalid( return)? type) TYPO3\\\\CMS\\\\Extbase\\\\Domain\\\\Model\\\\BackendUser(Group)?#"
- "#(unknown class|invalid( return)? type) TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\View\\\\ViewInterface#"
- "#(unknown class|invalid( return)? type) Doctrine\\\\DBAL\\\\FetchMode#"
- "#unknown class TYPO3\\\\CMS\\\\Core\\\\Context\\\\Context#"
- "#unknown class TYPO3\\\\CMS\\\\Core\\\\Context\\\\LanguageAspect#"
- "#unknown class TYPO3\\\\CMS\\\\Core\\\\Site\\\\Entity\\\\Site#"
Expand Down

0 comments on commit 5b3ef99

Please sign in to comment.