phan-taint-check-plugin fails on php8.2 with deprecation notice of dynamic properties on upstream classes.
More infos at https://wiki.php.net/rfc/deprecate_dynamic_properties
Upstream: https://github.com/phan/phan/issues/4776
Note: As of phan 5.4.1 the analyze of php8.2 is not supported
(Phan 5 supports analyzing PHP version 7.0-8.1 syntax)
Example when running phan on codesniffer repo - https://integration.wikimedia.org/ci/job/composer-package-php82-docker/12/console
/src/vendor/mediawiki/phan-taint-check-plugin/src/TaintednessAccessorsTrait.php:196 [8192] Creation of dynamic property Phan\Language\Element\Method::$funcTaint is deprecated (Phan 5.4.1 crashed when parsing/analyzing 'MediaWiki/Sniffs/AlternativeSyntax/AlternativeSyntaxSniff.php') More details: #2: SecurityCheckPlugin\TaintednessVisitor::doSetFuncTaint() called at [/src/vendor/mediawiki/phan-taint-check-plugin/src/TaintednessBaseVisitor.php:87] Args: [Phan\Language\Element\Method(\MediaWiki\Sniffs\AlternativeSyntax\AlternativeSyntaxSniff::register()), SecurityCheckPlugin\FunctionTaintedness({})] #3: SecurityCheckPlugin\TaintednessVisitor->addFuncTaint() called at [/src/vendor/mediawiki/phan-taint-check-plugin/src/TaintednessVisitor.php:969] Args: [Phan\Language\Element\Method(\MediaWiki\Sniffs\AlternativeSyntax\AlternativeSyntaxSniff::register()), SecurityCheckPlugin\FunctionTaintedness({})]
Example from plugin itself - https://integration.wikimedia.org/ci/job/composer-package-php82-docker/13/console
/src/src/TaintednessAccessorsTrait.php:39 [8192] Creation of dynamic property Phan\Language\Element\Parameter::$taintedness is deprecated (Phan 5.4.1 crashed when parsing/analyzing 'integration/backpropnumkey-conservative/db.php') More details: #2: SecurityCheckPlugin\PreTaintednessVisitor::setTaintednessRaw() called at [/src/src/PreTaintednessVisitor.php:100] Args: [Phan\Language\Element\Parameter($table), SecurityCheckPlugin\Taintedness({})] #3: SecurityCheckPlugin\PreTaintednessVisitor->visitMethod() called at [/src/src/MWPreVisitor.php:35] Args: [ast\Node({"kind":69,"flags":1,"lineno":5,"children":{"name":"select","docComment":null,"params":{"kind":136,"flags":0,"lineno":6,"children":[{"kind":1280,"flags":0,"lineno":6,"children":{"type":null,"name":"table","default":null,"attributes":null,"docComment":null}},{"kind":1280,"flags":0,"lineno":6,"children":{"type":null,"name":"vars","default":null,"attributes":null,"docComment":null}},{"kind":1280,"flags":0,"lineno":6,"children":{"type":null,"name":"conds","default":"","attributes":null,"docComment":null}},{"kind":1280,"flags":0,"lineno":6,"children":{"type":null,"name":"fname","default":{"kind":0,"flags":348,"lineno":6,"children":[]},"attributes":null,"docComment":null}},{"kind":1280,"flags":0,"lineno":7,"children":{"type":null,"name":"options","default":{"kind":129,"flags":3,"lineno":7,"children":[]},"attributes":null,"docComment":null}},{"kind":1280,"flags":0,"lineno":7,"chil...