Skip to content

Commit f24881e

Browse files
committed
minor #109 Bump CI workflows and fix CS (derrabus)
This PR was merged into the 3.x-dev branch. Discussion ---------- Bump CI workflows and fix CS * Bumped PHP CS Fixer to 3.11.0 and ran it * Added a PHPUnit job for PHP 8.2 Commits ------- a2f4126 Bump CI workflows and fix CS
2 parents 3f15abc + a2f4126 commit f24881e

File tree

11 files changed

+55
-50
lines changed

11 files changed

+55
-50
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php: ['7.2.5', '7.3', '7.4', '8.0', '8.1']
16+
php: ['7.2.5', '7.3', '7.4', '8.0', '8.1', '8.2']
1717
include:
1818
- php: '7.4'
1919
deps: lowest
@@ -56,6 +56,6 @@ jobs:
5656
- name: Checkout code
5757
uses: actions/checkout@v2
5858
- name: PHP-CS-Fixer
59-
uses: docker://oskarstark/php-cs-fixer-ga:3.5.0
59+
uses: docker://oskarstark/php-cs-fixer-ga:3.11.0
6060
with:
6161
args: --diff --dry-run

.github/workflows/psalm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defaults:
1010
jobs:
1111
psalm:
1212
name: Psalm
13-
runs-on: Ubuntu-20.04
13+
runs-on: Ubuntu-22.04
1414

1515
steps:
1616
- name: Setup PHP

Dbal/AclProvider.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -504,21 +504,21 @@ private function hydrateObjectIdentities(Result $stmt, array $oidLookup, array $
504504
// but it is faster
505505
foreach ($stmt->fetchAllNumeric() as $data) {
506506
[$aclId,
507-
$objectIdentifier,
508-
$parentObjectIdentityId,
509-
$entriesInheriting,
510-
$classType,
511-
$aceId,
512-
$objectIdentityId,
513-
$fieldName,
514-
$aceOrder,
515-
$mask,
516-
$granting,
517-
$grantingStrategy,
518-
$auditSuccess,
519-
$auditFailure,
520-
$username,
521-
$securityIdentifier] = array_values($data);
507+
$objectIdentifier,
508+
$parentObjectIdentityId,
509+
$entriesInheriting,
510+
$classType,
511+
$aceId,
512+
$objectIdentityId,
513+
$fieldName,
514+
$aceOrder,
515+
$mask,
516+
$granting,
517+
$grantingStrategy,
518+
$auditSuccess,
519+
$auditFailure,
520+
$username,
521+
$securityIdentifier] = array_values($data);
522522

523523
// FIX: remove duplicate slashes
524524
$classType = str_replace('\\\\', '\\', $classType);

Dbal/MutableAclProvider.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,9 @@ protected function getInsertObjectIdentitySql($identifier, $classId, $entriesInh
553553
/**
554554
* Constructs the SQL for inserting a security identity.
555555
*
556-
* @throws \InvalidArgumentException
557-
*
558556
* @return string
557+
*
558+
* @throws \InvalidArgumentException
559559
*/
560560
protected function getInsertSecurityIdentitySql(SecurityIdentityInterface $sid)
561561
{
@@ -623,9 +623,9 @@ protected function getSelectClassIdSql($classType)
623623
/**
624624
* Constructs the SQL for selecting the primary key of a security identity.
625625
*
626-
* @throws \InvalidArgumentException
627-
*
628626
* @return string
627+
*
628+
* @throws \InvalidArgumentException
629629
*/
630630
protected function getSelectSecurityIdentityIdSql(SecurityIdentityInterface $sid)
631631
{
@@ -650,9 +650,9 @@ protected function getSelectSecurityIdentityIdSql(SecurityIdentityInterface $sid
650650
/**
651651
* Constructs the SQL to delete a security identity.
652652
*
653-
* @throws \InvalidArgumentException
654-
*
655653
* @return string
654+
*
655+
* @throws \InvalidArgumentException
656656
*/
657657
protected function getDeleteSecurityIdentityIdSql(SecurityIdentityInterface $sid)
658658
{
@@ -667,9 +667,9 @@ protected function getDeleteSecurityIdentityIdSql(SecurityIdentityInterface $sid
667667
*
668668
* @param int $pk
669669
*
670-
* @throws \InvalidArgumentException
671-
*
672670
* @return string
671+
*
672+
* @throws \InvalidArgumentException
673673
*/
674674
protected function getUpdateObjectIdentitySql($pk, array $changes)
675675
{
@@ -715,9 +715,9 @@ protected function getUpdateUserSecurityIdentitySql(UserSecurityIdentity $usid,
715715
*
716716
* @param int $pk
717717
*
718-
* @throws \InvalidArgumentException
719-
*
720718
* @return string
719+
*
720+
* @throws \InvalidArgumentException
721721
*/
722722
protected function getUpdateAccessControlEntrySql($pk, array $sets)
723723
{

Domain/Acl.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,21 +264,22 @@ public function __serialize(): array
264264
public function __unserialize(array $data): void
265265
{
266266
[$this->parentAcl,
267-
$this->objectIdentity,
268-
$this->classAces,
269-
$this->classFieldAces,
270-
$this->objectAces,
271-
$this->objectFieldAces,
272-
$this->id,
273-
$this->loadedSids,
274-
$this->entriesInheriting
267+
$this->objectIdentity,
268+
$this->classAces,
269+
$this->classFieldAces,
270+
$this->objectAces,
271+
$this->objectFieldAces,
272+
$this->id,
273+
$this->loadedSids,
274+
$this->entriesInheriting
275275
] = $data;
276276

277277
$this->listeners = [];
278278
}
279279

280280
/**
281281
* @internal
282+
*
282283
* @final
283284
*
284285
* @return string
@@ -290,6 +291,7 @@ public function serialize()
290291

291292
/**
292293
* @internal
294+
*
293295
* @final
294296
*
295297
* @param string $serialized

Domain/Entry.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,18 @@ public function __serialize(): array
175175
public function __unserialize(array $data): void
176176
{
177177
[$this->mask,
178-
$this->id,
179-
$this->securityIdentity,
180-
$this->strategy,
181-
$this->auditFailure,
182-
$this->auditSuccess,
183-
$this->granting
178+
$this->id,
179+
$this->securityIdentity,
180+
$this->strategy,
181+
$this->auditFailure,
182+
$this->auditSuccess,
183+
$this->granting
184184
] = $data;
185185
}
186186

187187
/**
188188
* @internal
189+
*
189190
* @final
190191
*
191192
* @return string
@@ -197,6 +198,7 @@ public function serialize()
197198

198199
/**
199200
* @internal
201+
*
200202
* @final
201203
*
202204
* @param string $serialized

Domain/ObjectIdentity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public function __construct($identifier, $type)
5252
*
5353
* @param object $domainObject
5454
*
55-
* @throws InvalidDomainObjectException
56-
*
5755
* @return ObjectIdentity
56+
*
57+
* @throws InvalidDomainObjectException
5858
*/
5959
public static function fromDomainObject($domainObject)
6060
{

Model/AclInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ public function isFieldGranted(string $field, array $masks, array $securityIdent
8787
/**
8888
* Determines whether access is granted.
8989
*
90-
* @throws NoAceFoundException when no ACE was applicable for this request
91-
*
9290
* @return bool
91+
*
92+
* @throws NoAceFoundException when no ACE was applicable for this request
9393
*/
9494
public function isGranted(array $masks, array $securityIdentities, bool $administrativeMode = false);
9595

Model/MutableAclProviderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public function findAcls(array $oids, array $sids = []);
3737
/**
3838
* Creates a new ACL for the given object identity.
3939
*
40+
* @return MutableAclInterface
41+
*
4042
* @throws AclAlreadyExistsException when there already is an ACL for the given
4143
* object identity
42-
*
43-
* @return MutableAclInterface
4444
*/
4545
public function createAcl(ObjectIdentityInterface $oid);
4646

Permission/MaskBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ public function getPattern()
9696
*
9797
* @param int $mask
9898
*
99+
* @return string
100+
*
99101
* @throws \InvalidArgumentException
100102
* @throws \RuntimeException
101-
*
102-
* @return string
103103
*/
104104
public static function getCode($mask)
105105
{

0 commit comments

Comments
 (0)