Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php $doc = new DOMDocument(); $forms = $doc->getElementsByTagName('form'); $firstForm = $forms->item(0); processNodes($firstForm->childNodes); // this didn't cause error in Psalm 4.4.1, but in 4.6.2 it does function processNodes(DOMNodeList $nodes): void { // ... do something with nodes }
Snippet created on February 26 2021 at 19:04 UTC
Settings
Get link