Solutions to https://returntrue.win/
!0str_rot13!00𡃁new class{function __invoke(){return$this;}}best absolute (not from me) :($x=session_id)($x).$x(object)[!0]
| #!/usr/bin/env bash | |
| ROOT=$(git rev-parse --show-toplevel) | |
| cd "$ROOT" | |
| git --git-dir "$ROOT"/.git --work-tree "$ROOT" status --porcelain | grep -e '^[AM]\(.*\).php$' | cut -c 3- | while read line; do | |
| bin/php-cs-fixer fix --dry-run --diff --no-ansi --verbose "$line" | |
| if [ $? -ne 0 ]; then | |
| exit 1 | |
| fi |
!0str_rot13!00𡃁new class{function __invoke(){return$this;}} best absolute (not from me) : ($x=session_id)($x).$x(object)[!0]| "array_slice" | |
| "assert" | |
| "boolval" | |
| "call_user_func" | |
| "call_user_func_array" | |
| "chr" | |
| "count" | |
| "defined" | |
| "doubleval" | |
| "floatval" |
| <?php | |
| declare(strict_types=1); | |
| use Behat\Behat\Context\Context; | |
| class FixtureContext implements Context | |
| { | |
| // Empty for now | |
| } |
| <?php | |
| declare(strict_types=1); | |
| use Behat\Behat\Context\Context; | |
| class FixtureContext implements Context | |
| { | |
| // Empty for now | |
| } |
| <?php | |
| declare(strict_types=1); | |
| use Behat\Behat\Context\Context; | |
| use Doctrine\Bundle\DoctrineBundle\Registry; | |
| use Fidry\AliceDataFixtures\LoaderInterface; | |
| class FixtureContext implements Context | |
| { |
| <?php | |
| namespace App\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * @ORM\Entity(repositoryClass="App\Repository\ProductRepository") | |
| */ | |
| class Product |
| <?php | |
| namespace App\Action; | |
| // use statements omitted for concision | |
| class ListProductsAction | |
| { | |
| // Properties & constructor omitted for concision | |
| public function __invoke(Request $request): JsonResponse |
| App\Entity\ProductCategory: | |
| category_tools: | |
| name: 'tools' | |
| category_lighting: | |
| name: 'lighting' | |
| App\Entity\Product: | |
| tools_products_{1..10}: | |
| name: '<firstName()>' |
| @product @list-products | |
| Feature: | |
| In order to select products | |
| As a customer | |
| I want to see the products available | |
| Background: | |
| Given the fixtures file "list-products.yaml" is loaded | |
| Scenario: List all products |