This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/main/php/lang/ast/syntax/php/IsOperator.class.php b/src/main/php/lang/ast/syntax/php/IsOperator.class.php | |
| index 30832b5..bb1048e 100755 | |
| --- a/src/main/php/lang/ast/syntax/php/IsOperator.class.php | |
| +++ b/src/main/php/lang/ast/syntax/php/IsOperator.class.php | |
| @@ -250,24 +250,29 @@ class IsOperator implements Extension { | |
| } | |
| return $compound; | |
| } else if ($pattern instanceof IsArrayStructure) { | |
| - $compound= new BinaryExpression( | |
| - new InvokeExpression(new Literal('is_array'), [$init]), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/main/php/lang/ast/syntax/php/IsOperator.class.php b/src/main/php/lang/ast/syntax/php/IsOperator.class.php | |
| index 7e34fc1..99c40b3 100755 | |
| --- a/src/main/php/lang/ast/syntax/php/IsOperator.class.php | |
| +++ b/src/main/php/lang/ast/syntax/php/IsOperator.class.php | |
| @@ -14,6 +14,7 @@ use lang\ast\nodes\{ | |
| MatchExpression, | |
| OffsetExpression, | |
| ScopeExpression, | |
| + UnpackExpression, | |
| Variable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php namespace lang\ast\syntax\php; | |
| use lang\ast\Type; | |
| use util\Objects; | |
| class IsOptional extends Type { | |
| public $binding, $default; | |
| /** | |
| * Creates a an optional binding "type" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php namespace lang\ast\syntax\php; | |
| use lang\ast\Type; | |
| use util\Objects; | |
| class IsOptional extends Type { | |
| public $binding, $default; | |
| /** | |
| * Creates a an optional binding "type" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php namespace lang\ast\syntax\php\unittest; | |
| use lang\ast\unittest\emit\EmittingTest; | |
| use test\{Assert, Test, Values}; | |
| class CatchTest extends EmittingTest { | |
| #[Test, Values(['$e', 'IllegalAccessException $e', 'IllegalAccessException|Error $e'])] | |
| public function default_try_with($catch) { | |
| Assert::equals('Test', $this->run('use lang\\IllegalAccessException; class %T { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use com\adobe\pdf\{PdfReader, Content, Ref, Tokens, CharacterMap}; | |
| use io\streams\FileInputStream; | |
| use lang\FormatException; | |
| use util\Objects; | |
| use util\cmd\Console; | |
| try { | |
| $reader= new PdfReader(new FileInputStream($argv[1])); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use io\{File, Files}; | |
| use lang\Value; | |
| use peer\http\HttpConnection; | |
| use text\json\{Json, StreamInput}; | |
| use util\Comparison; | |
| use util\cmd\Console; | |
| use websocket\WebSocket; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use util\Bytes; | |
| use web\Application; | |
| use web\handler\WebSocket; | |
| class Ws extends Application { | |
| public function routes() { | |
| return [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use com\openai\rest\OpenAIEndpoint; | |
| use io\File; | |
| use util\Objects; | |
| use web\Application; | |
| class TestGPT extends Application { | |
| private $ai; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use com\openai\realtime\RealtimeApi; | |
| use io\streams\LinesIn; | |
| use io\{File, Files}; | |
| use util\Objects; | |
| use util\log\Logging; | |
| use web\Application; | |
| class TestRT extends Application { |
NewerOlder