Added phpstan.neon configuration to process sources at level 9. Excludes audio directory for now as this is incomplete.
Fixed the tide of errors from the analysis with phpstan (v1.2.0). There are still some red herrings that have to be ignored as they depend either on the version of php or other runtime safety checks that are not easily analysed ahead of time.
Modified the classmap builder to locate instances of global function calls that fall into local namespace resolution.
Added global use function cases to all those found.
use function
cases to all those found.