I hereby claim:
- I am asgrim on github.
- I am asgrim (https://keybase.io/asgrim) on keybase.
- I have a public key whose fingerprint is 0CA7 4C69 68D5 5872 4C63 BC89 11EA 1C58 CEF3 7C1C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| foreach ([ | |
| 'TraitFixtureA', | |
| // 'TraitFixtureB', | |
| // 'TraitFixtureC', | |
| // 'TraitFixtureD', | |
| ] as $c) { | |
| echo "\n\n" . $c . "\n" . str_repeat('=', strlen($c)) . "\n\n"; | |
| $a = new \ReflectionClass($c); | |
| var_dump($a->getTraits()); | |
| var_dump($a->getTraitNames()); |
| Exception#__construct.message | |
| Exception#__construct.code | |
| Exception#__construct.previous | |
| ErrorException#__construct.message | |
| ErrorException#__construct.code | |
| ErrorException#__construct.severity | |
| ErrorException#__construct.filename | |
| ErrorException#__construct.lineno | |
| ErrorException#__construct.previous | |
| Closure#bind.newscope |
| :):):)(bandit)(bandit)(bandit)(bandit)(bandit)(bandit)(bandit)(bandit)(bandit):):):) | |
| :)(bandit)(bandit):)(swear)(swear)(swear)(swear)(swear)(swear):):)(bandit):):) | |
| (bandit):)(swear)(swear)(swear):):):):)(swear)(swear)(swear):)(bandit):) | |
| (bandit):)(swear)(bandit)(bandit):):):):)(bandit)(bandit)(bandit)(swear)(bandit):) | |
| (bandit)(swear)(bandit)(bandit)(bandit)(bandit):):)(bandit)(bandit)(bandit)(bandit)(bandit)(swear)(bandit) | |
| (bandit)(swear):):):)(emo):):):):):):):)(swear)(bandit) | |
| (bandit)(swear):):)(emo):):):)(emo):):):)(bandit)(swear)(bandit) | |
| (bandit)(swear):):):)(emo)(emo)(emo):):)(bandit)(bandit)(bandit)(swear)(bandit) | |
| (bandit):)(bandit)(bandit):):):):)(bandit)(bandit)(bandit)(~)(bandit)(swear)(bandit) |
| <?php | |
| require "vendor/autoload.php"; | |
| class Foo { | |
| public function bar() {} | |
| } | |
| $c = 1000; |
| <?php | |
| $hellos = ['hi', 'hey']; | |
| $separators = [ | |
| ' ', | |
| ', ', | |
| ' - ', | |
| '... ', | |
| '.. ', |
| <?php | |
| require_once __DIR__ . '/../../vendor/autoload.php'; | |
| use BetterReflection\Reflector\ClassReflector; | |
| use BetterReflection\SourceLocator\AggregateSourceLocator; | |
| use BetterReflection\SourceLocator\SingleFileSourceLocator; | |
| use PhpParser\PrettyPrinter\Standard as CodePrinter; | |
| // Create the reflection first (without loading) |
| #!/bin/bash | |
| echo -n "Running phpunit... " | |
| vendor/bin/phpunit --stop-on-failure --stop-on-error > /dev/null | |
| if [ $? -ne 0 ] | |
| then | |
| echo "[FAILED]" | |
| exit 1 | |
| fi |
| <?php | |
| $months = array_map( | |
| function ($i) { | |
| return (new \DateTimeImmutable())->setDate(2017, $i, 1)->format('F'); | |
| }, | |
| range(1, 12) | |
| ); | |
| var_dump($months); |
| <?php | |
| declare(strict_types=1); | |
| use Psr\Http\Message\ResponseInterface; | |
| use Psr\Http\Message\ServerRequestInterface; | |
| /** @var \Interop\Container\ContainerInterface $container */ | |
| $container = require __DIR__ . '/../config/container.php'; | |
| /** @var \Zend\Expressive\Application $app */ |