Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- namespace localhost\illiFW\dev;
- require_once 'ILLI/illi.php';
- \Server\Init::development();
- \Server\Init::debug();
- \Server\Init::illi();
- use ILLI\Application as Application;
- use ILLI\Runtime\Program as Program;
- class lucas extends Program // this is not longer allowed
- {
- public static function delegate($callable)
- {
- try
- {
- $callable();
- }
- catch(\ILLI\Exception\Base $e)
- {
- print $e->export()->asText();
- }
- catch(\Exception $e)
- {
- var_dump($e);
- }
- }
- }
- lucas::delegate(function()
- {
- var_dump(lucas::getThread());
- var_dump((new \ILLI\Php\Filepath('foo\bar'))->invoke());
- });
- ?>
- ERROR
- ILLI\Runtime\ProgramException
- Message *localhost\illiFW\dev\lucas* can not extend
- *ILLI\Runtime\Program* instead of
- *ILLI\Runtime\Application*.
- Thrown in /var/www/dev/ILLI/3.0.1/VENDOR/ILLI/Runtime/Program.php
- Line 00000070
- ErrorCode 0x000C4567
- Level 1
- References
- Ref #thread string(26) "localhost\illiFW\dev\lucas"
- Ref #class string(20) "ILLI\Runtime\Program"
- Ref #required string(24) "ILLI\Runtime\Application"
- Ref #__INFO__ object(ILLI\Runtime\ProgramInfo)#17 (5) {
- ["__fileName":"ILLI\Runtime\ProgramInfo":private]=>
- string(48) "/var/www/dev/index.php"
- ["__startLine":"ILLI\Runtime\ProgramInfo":private]=>
- int(11)
- ["__endLine":"ILLI\Runtime\ProgramInfo":private]=>
- int(28)
- ["__hash":"ILLI\Runtime\ProgramInfo":private]=>
- string(32) "000000007f7eb5a9000000007d5d8746"
- ["__threadName":"ILLI\Runtime\ProgramInfo":private]=>
- string(26) "localhost\illiFW\dev\lucas"
- }
- ILLI\Runtime\Program::getThread()
- File /var/www/dev/index.php
- Line 32
- localhost\illiFW\dev\{closure}()
- File /var/www/dev/index.php
- Line 17
- localhost\illiFW\dev\lucas::delegate()
- Parameter 001 object(Closure)#6 (0) {
- }
- File /var/www/dev/index.php
- Line 34
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement