I hereby claim:
- I am jsor on github.
- I am jsor (https://keybase.io/jsor) on keybase.
- I have a public key whose fingerprint is 4C8B 04C1 C4F3 8711 3ECC D939 8708 F3EE CCA6 FDFA
To claim this, I am signing this object:
<?php | |
namespace DoctrinePostGISExample; | |
use Doctrine\ORM\Mapping as ORM; | |
use GeoIO\Geometry\Point; | |
/** | |
* @ORM\Entity | |
* @ORM\Table( |
<?php | |
function resolve($promiseOrValue = null) | |
{ | |
if ($promiseOrValue instanceof ReactPromiseInterface) { | |
return $promiseOrValue; | |
} | |
// Create a React\Promise from a foreign promise | |
if ($promiseOrValue instanceof FigPromiseInterface) { |
<?php | |
namespace App\ProcessManager\Billing; | |
use App\Read\Billing\Queries\GetDefaultPlan; | |
use App\Read\Identity\Queries\UserWithId; | |
use App\Read\Identity\UserDto; | |
use App\Services\Bus\BillingCommandBus; | |
use App\Services\Bus\BillingQueryBus; | |
use App\Services\Bus\IdentityQueryBus; |
<?php | |
namespace React\Promise\Queue; | |
use React\EventLoop\LoopInterface; | |
class ReactLoopQueue implements QueueInterface | |
{ | |
private $loop; |
I hereby claim:
To claim this, I am signing this object:
<?php | |
namespace React\Promise; | |
class CoroutineTest extends \PHPUnit_Framework_TestCase | |
{ | |
public function testResolvedValueEqualsFinalYield() | |
{ | |
$gen = function () { | |
$a = (yield 21); |
<?php | |
require 'vendor/autoload.php'; | |
$loop = \React\EventLoop\Factory::create(); | |
$filesystem = new \React\Filesystem\Filesystem($loop); | |
$loop->addTimer(0.0001, function() use ($filesystem) { | |
$file = $filesystem->file(__FILE__); | |
$file->exists()->then(function() use ($file) { | |
echo __FILE__ . ' exists', PHP_EOL; |
<?php | |
namespace React\Promise; | |
function settle($promisesOrValues) | |
{ | |
return resolve($promisesOrValues) | |
->then(function ($array) { | |
if (!is_array($array) || !$array) { | |
return resolve([]); |
<?php | |
require __DIR__.'/function_interfaces.php'; | |
interface foo {} | |
interface interfaces { | |
function my_function(); | |
function my_function2(callable $callable, $string, \Traversable $traversable, foo $foo, $constant = DIRECTORY_SEPARATOR); | |
} |