You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you, I had no idea and followed my TypeScript habbits. I have removed the union types temporarily in v0.3.1 and plan to re-introduce them in November, when the minimum version will be bumped to PHP 8.0. Looking at the supported versions, I will also bump the minimum version to PHP 7.4 in the next release.
Description
Union types (like
array|string
) were introduced in PHP 8.0, so the package breaks in PHP^7.3
.Steps to Reproduce
Expected behavior:
Runs properly.
Actual behavior:
Fatal error: Uncaught Error: syntax error, unexpected '|', expecting variable (T_VARIABLE)
Versions
All versions.
The text was updated successfully, but these errors were encountered: