-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
280815b
commit 0ccf024
Showing
23 changed files
with
91 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @phpstan-template T of object | ||
* @phpstan-implements DataTransformerInterface<T, T|array<string, mixed>> | ||
*/ | ||
final class ArrayToModelTransformer implements DataTransformerInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
* which allows you to use non-strings in reverseTransform() method. | ||
* | ||
* @author Peter Gribanov <[email protected]> | ||
* | ||
* @phpstan-implements DataTransformerInterface<bool, string> | ||
*/ | ||
final class BooleanToStringTransformer implements DataTransformerInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @phpstan-template T of object | ||
* @phpstan-implements DataTransformerInterface<T, int|string> | ||
*/ | ||
final class ModelToIdTransformer implements DataTransformerInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @phpstan-template T of object | ||
* @phpstan-implements DataTransformerInterface<\Traversable<T>, array<int|string>> | ||
*/ | ||
final class ModelsToArrayTransformer implements DataTransformerInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
use Symfony\Component\Security\Acl\Domain\ObjectIdentity; | ||
use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; | ||
use Symfony\Component\Security\Acl\Model\MutableAclInterface; | ||
use Symfony\Component\Security\Acl\Permission\MaskBuilderInterface; | ||
|
||
/** | ||
* @author Thomas Rabaix <[email protected]> | ||
|
@@ -28,12 +29,12 @@ final class AdminAclManipulator implements AdminAclManipulatorInterface | |
/** | ||
* @var string | ||
* | ||
* @phpstan-var class-string | ||
* @phpstan-var class-string<MaskBuilderInterface> | ||
*/ | ||
private $maskBuilderClass; | ||
|
||
/** | ||
* @phpstan-param class-string $maskBuilderClass | ||
* @phpstan-param class-string<MaskBuilderInterface> $maskBuilderClass | ||
*/ | ||
public function __construct(string $maskBuilderClass) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ | |
|
||
/** | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @phpstan-extends \RecursiveArrayIterator<string|int, FormBuilderInterface> | ||
*/ | ||
final class FormBuilderIterator extends \RecursiveArrayIterator | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ | |
|
||
/** | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @phpstan-implements \RecursiveIterator<string, FormView> | ||
*/ | ||
final class FormViewIterator implements \RecursiveIterator | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.