Warning: Cannot redeclare class FooBar (previously declared in /in/kBsXT:5) in /in/kBsXT on line 13
Passing Foo\Bar worked with GuineaPig::withNamespace
Passing FooBar worked with GuineaPig::withoutNamespace
Fatal error: Uncaught TypeError: GuineaPig::withNamespace(): Argument #1 ($bar) must be of type Foo\Bar, FooBar given, called in /in/kBsXT on line 35 and defined in /in/kBsXT:18
Stack trace:
#0 /in/kBsXT(35): GuineaPig->withNamespace(Object(FooBar))
#1 {main}
thrown in /in/kBsXT on line 18
Process exited with code 255.
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Warning: Cannot declare class FooBar, because the name is already in use in /in/kBsXT on line 13
Passing Foo\Bar worked with GuineaPig::withNamespace
Passing FooBar worked with GuineaPig::withoutNamespace
Fatal error: Uncaught TypeError: GuineaPig::withNamespace(): Argument #1 ($bar) must be of type Foo\Bar, FooBar given, called in /in/kBsXT on line 35 and defined in /in/kBsXT:18
Stack trace:
#0 /in/kBsXT(35): GuineaPig->withNamespace(Object(FooBar))
#1 {main}
thrown in /in/kBsXT on line 18
Process exited with code 255.
Warning: Cannot declare class FooBar, because the name is already in use in /in/kBsXT on line 13
Passing Foo\Bar worked with GuineaPig::withNamespace
Passing FooBar worked with GuineaPig::withoutNamespace
Fatal error: Uncaught TypeError: Argument 1 passed to GuineaPig::withNamespace() must be an instance of Foo\Bar, instance of FooBar given, called in /in/kBsXT on line 35 and defined in /in/kBsXT:18
Stack trace:
#0 /in/kBsXT(35): GuineaPig->withNamespace(Object(FooBar))
#1 {main}
thrown in /in/kBsXT on line 18
Process exited with code 255.