Change error reporting to not flag on deprecated

See https://github.com/sebastianbergmann/phpunit/commit/a4835d134439c02a9e648e82a2cdfddb22e26bde