Skip to content

Instantly share code, notes, and snippets.

@ktarila
ktarila / AddMapEntityRector.php
Created December 31, 2024 15:50
Rector rule to fix symfony 7.1 automatic mapping of route parameters into Doctrine entities deprecation
<?php
declare(strict_types=1);
namespace Utils\Rector\Rector;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Attribute;
use PhpParser\Node\AttributeGroup;