generated from spawnia/php-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cover additional PHP keyword edge cases (#68)
- Loading branch information
Showing
48 changed files
with
522 additions
and
549 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
<?php declare(strict_types=1); | ||
|
||
use Spawnia\Sailor\CustomTypes\Operations\MyCustomEnumQuery; | ||
use Spawnia\Sailor\CustomTypes\Types\CustomEnum; | ||
|
||
require __DIR__ . '/../vendor/autoload.php'; | ||
|
||
$result = \Spawnia\Sailor\Simple\Operations\MyObjectQuery::execute(); | ||
$result = MyCustomEnumQuery::execute( | ||
new CustomEnum(CustomEnum::A) | ||
); | ||
|
||
assert(42 === $result->data->singleObject->value); | ||
assert(CustomEnum::B === $result->data->withCustomEnum->value); |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Empty file.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/sailor | ||
/vendor | ||
/composer.lock | ||
/generated |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"require": { | ||
"spawnia/sailor": "@dev" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Spawnia\\Sailor\\PhpKeywords\\": "generated/" | ||
} | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "./sailor", | ||
"options": { | ||
"symlink": false | ||
} | ||
} | ||
], | ||
"scripts": { | ||
"move-package": "rsync -r ../../ sailor --exclude examples --exclude vendor --exclude .idea --exclude .build --delete", | ||
"pre-install-cmd": "@move-package", | ||
"pre-update-cmd": "@move-package" | ||
} | ||
} |
Oops, something went wrong.