add phpstan

This commit is contained in:
Daniel Seifert 2024-12-04 12:04:03 +01:00
parent 6462039c63
commit db7f3bc29c
2 changed files with 11 additions and 2 deletions

View File

@ -29,10 +29,16 @@
"d3/oxidservicebridges": "^2.1", "d3/oxidservicebridges": "^2.1",
"d3/oxid-twig-extensions": "^1.3" "d3/oxid-twig-extensions": "^1.3"
}, },
"require-dev": {
"phpstan/phpstan": "^2.0"
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"O3\\TinyMCE\\": "./" "O3\\TinyMCE\\": "./"
} }
},
"scripts": {
"phpstan": "./vendor/bin/phpstan analyse -c./vendor/d3/tinymce-editor/phpstan.neon"
} }
} }

View File

@ -1,11 +1,14 @@
parameters: parameters:
scanFiles: scanFiles:
- .ide-helper.php - .ide-helper.php
- ../../o3-shop/shop-ce/source/oxfunctions.php - ../../oxid-esales/oxideshop-ce/source/bootstrap.php
- ../../oxid-esales/oxideshop-ce/source/oxfunctions.php
- ../../oxid-esales/oxideshop-ce/source/overridablefunctions.php
paths: paths:
- Application - Application
- assets/out/fileman
level: 9 level: 9
phpVersion: 70400 phpVersion: 80000
ignoreErrors: ignoreErrors:
- '#Constant FILES_ROOT not found.#' - '#Constant FILES_ROOT not found.#'
- '#Constant SESSION_PATH_KEY not found.#' - '#Constant SESSION_PATH_KEY not found.#'