Skip to content
This repository was archived by the owner on Jan 11, 2026. It is now read-only.

Conversation

@acran
Copy link

@acran acran commented Feb 24, 2021

This fixes some issues with recent versions of PHP:

resolves #402 (by including it)
resolves #417
fixes #412
fixes #415

vcampitelli and others added 3 commits March 21, 2019 15:10
ReflectionNamedType::__toString() was deprecated in PHP 7.1.0 in favor
of ReflectionNamedType::getName() and the deprecation warning will break
the JSON output
parsing files including broken require_once (e.g. path can not be
resolved) will trigger an error which is handled by onError converting
it to an ErrorException and throwing it again.
This *should* then be caught by onException to convert and print this as
JSON and exit. But due to https://bugs.php.net/bug.php?id=66216 this
does not happen and the parser exits an empty output which results in
another Exception in php-proxy.coffee trying to parse the empty string
as JSON.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package does not work with PHP 7.4.6 Function ReflectionType::__toString() is deprecated

2 participants