diff --git a/composer.json b/composer.json index ce34dad..10a9f7d 100755 --- a/composer.json +++ b/composer.json @@ -29,10 +29,16 @@ "d3/oxidservicebridges": "^2.1", "d3/oxid-twig-extensions": "^1.3" }, + "require-dev": { + "phpstan/phpstan": "^2.0" + }, "autoload": { "psr-4": { "O3\\TinyMCE\\": "./" } + }, + "scripts": { + "phpstan": "./vendor/bin/phpstan analyse -c./vendor/d3/tinymce-editor/phpstan.neon" } } diff --git a/phpstan.neon b/phpstan.neon index 0d551d8..eb66e2a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,11 +1,14 @@ parameters: scanFiles: - .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: - Application + - assets/out/fileman level: 9 - phpVersion: 70400 + phpVersion: 80000 ignoreErrors: - '#Constant FILES_ROOT not found.#' - '#Constant SESSION_PATH_KEY not found.#'