Skip to content

Commit

Permalink
Revert "added phpstan extensions (#5153)" (#5157)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jun 11, 2022
1 parent d324493 commit 8aca900
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 194 deletions.
50 changes: 0 additions & 50 deletions .tools/phpstan/RexClassDynamicReturnTypeExtension.php

This file was deleted.

120 changes: 0 additions & 120 deletions .tools/phpstan/RexFunctionsDynamicReturnTypeExtension.php

This file was deleted.

10 changes: 0 additions & 10 deletions .tools/phpstan/baseline.neon
Expand Up @@ -75,16 +75,6 @@ parameters:
count: 1
path: ../../redaxo/src/addons/structure/plugins/content/pages/content.edit.php

-
message: "#^Comparison operation \"\\=\\=\" between 3 and array\\|bool\\|float\\|int\\|string\\|null results in an error\\.$#"
count: 1
path: ../../redaxo/src/addons/structure/plugins/content/pages/modules.actions.php

-
message: "#^Comparison operation \"\\=\\=\" between 7 and array\\|bool\\|float\\|int\\|string\\|null results in an error\\.$#"
count: 2
path: ../../redaxo/src/addons/structure/plugins/content/pages/modules.actions.php

-
message: "#^If condition is always true\\.$#"
count: 1
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -78,8 +78,7 @@
"redaxo/src/addons/structure/plugins/history/lib/",
"redaxo/src/addons/structure/plugins/version/lib/",
"redaxo/src/addons/users/lib/",
"redaxo/src/core/lib/",
".tools/phpstan/"
"redaxo/src/core/lib/"
],
"files": [
"redaxo/src/addons/mediapool/functions/function_rex_mediapool.php",
Expand Down
13 changes: 1 addition & 12 deletions phpstan.neon.dist
@@ -1,5 +1,5 @@
includes:
- .tools/phpstan/baseline.neon
- .tools/phpstan/baseline.neon

parameters:
level: 5
Expand Down Expand Up @@ -45,14 +45,3 @@ parameters:
-
message: '#.*deprecated.*#'
path: '*/update.php'

services:
-
class: redaxo\phpstan\RexClassDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension

-
class: redaxo\phpstan\RexFunctionsDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicFunctionReturnTypeExtension

0 comments on commit 8aca900

Please sign in to comment.