> OK: Bar
> ERROR: Baz cannot inherit from sealed interface FooInterface
> ERROR: Qux cannot inherit from sealed trait FooTrait
> OK: Quux
> ERROR: Biz cannot inherit from sealed class Qux
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
> OK: Bar
> ERROR: Baz cannot inherit from sealed interface FooInterface
> ERROR: Qux cannot inherit from sealed trait FooTrait
> OK: Quux
> ERROR: Biz cannot inherit from sealed class Qux
Output for 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Call to undefined method ReflectionClass::getAttributes() in /in/Dek4H:19
Stack trace:
#0 /in/Dek4H(36): {closure}(Object(ReflectionClass))
#1 /in/Dek4H(73): validate('Bar')
#2 {main}
thrown in /in/Dek4H on line 19
Process exited with code 255.
Output for 7.3.0 - 7.3.33
Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) in /in/Dek4H on line 5
Process exited with code 255.