Skip to content

Commit

Permalink
add test caes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Dec 23, 2020
1 parent 7debb49 commit ab5806f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
26 changes: 4 additions & 22 deletions abz/SomeFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,12 @@

namespace CampApp\Model\Infrastructure\Security\Logger;

use CampApp\Model\Infrastructure\Security\Authorizator\Action;
use CampApp\Model\Infrastructure\Security\Authorizator\PrimitiveAction;
use Ds\Stack;
use Mangoweb\Authorization\Scope\AuthorizationScope;


final class MemoryApplicationPermissionLogger
{
/** @var Stack<array{queriedAction:string, requiredActions:array{queriedAction:string, isAllowed:bool}[], isAllowed:bool, type:string}>
*/
private $permissionChecks;

/** @var Stack<array{
* queriedAction: string,
* isAllowed: bool
* }>
*/
private $requiredActionChecks;

/**
* @return array{queriedAction:string, requiredActions:array{queriedAction:string, isAllowed:bool}[], isAllowed:bool, type:string}|null
* @var array{
* type:string,
* }
*/
public function getLastPermissionCheck(): ?array
{
return $this->permissionChecks->peek();
}
private $permissionChecks;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace Rector\BetterPhpDocParser\Tests\PhpDocParser\TagValueNodeReprint\Fixture\Native\VarTag\ArrayType;

final class ArrayWithTypedComma
{
/**
* @var array{
* type:string,
* }
*/
private $mappings = [];
}
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
->call('configure', [[
RenameClassRector::OLD_TO_NEW_CLASSES => [
'A' => 'B',
]
],
]]);

$parameters = $containerConfigurator->parameters();
Expand Down

0 comments on commit ab5806f

Please sign in to comment.