Skip to content

Commit b695b07

Browse files
committed
Merge branch 'cleanup'
2 parents 0c64cdc + 97ce484 commit b695b07

27 files changed

+456
-438
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
['template', 'template-covariant'],
6060
['extends', 'implements', 'use'],
6161
['phpstan-require-extends', 'phpstan-require-implements'],
62-
['readonly', 'var', 'phpstan-var', 'param', 'param-out', 'phpstan-param', 'return', 'phpstan-return', 'throws', 'phpstan-assert*', 'phpstan-ignore-next-line'],
62+
['readonly', 'var', 'phpstan-var', 'param', 'param-out', 'phpstan-param', 'return', 'phpstan-return', 'throws', 'phpstan-assert*', 'phpstan-ignore*', 'disregard'],
6363
['phpstan-*'],
6464
]],
6565
'phpdoc_tag_casing' => true,

phpstan-baseline-7.4.neon

Lines changed: 0 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan-baseline-8.3.neon

Lines changed: 0 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Toolkit/Cli/CliApplication.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ public function run()
303303
{
304304
$this->LastExitStatus = 0;
305305

306+
/** @disregard P1006 */
306307
$args = array_slice($_SERVER['argv'], 1);
307308

308309
$lastNode = null;

src/Toolkit/Container/Application.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ final public function startSync(?string $command = null, ?array $arguments = nul
538538
));
539539
}
540540

541+
/** @disregard P1006 */
541542
Sync::load(new SyncStore(
542543
$syncDb,
543544
$command === null

src/Toolkit/Container/Container.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ private function bindContainer(): void
102102
// Bind interfaces that extend Psr\Container\ContainerInterface
103103
foreach ($class->getInterfaces() as $name => $interface) {
104104
if ($interface->implementsInterface(PsrContainerInterface::class)) {
105+
/** @disregard P1006 */
105106
$this->instance($name, $this);
106107
}
107108
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace Salient\Contract\Core;
4+
5+
use ArrayAccess;
6+
use ReturnTypeWillChange;
7+
8+
/**
9+
* Provides a standard interface to an underlying object or array and its values
10+
*
11+
* @api
12+
*
13+
* @extends ArrayAccess<array-key,mixed>
14+
*/
15+
interface GraphInterface extends ArrayAccess
16+
{
17+
/**
18+
* @param mixed[]|object $value
19+
*/
20+
public function __construct(&$value = []);
21+
22+
/**
23+
* Get the underlying object or array
24+
*
25+
* @return mixed[]|object
26+
*/
27+
public function getValue();
28+
29+
/**
30+
* Get the properties or keys traversed to reach the current value
31+
*
32+
* @return array<array-key>
33+
*/
34+
public function getPath(): array;
35+
36+
/**
37+
* Get the value at the given offset
38+
*
39+
* If the value is an object or array, a new instance of the class is
40+
* returned to service it, otherwise the value itself is returned.
41+
*
42+
* @return static|resource|int|float|string|bool|null
43+
* @disregard P1038
44+
*/
45+
#[ReturnTypeWillChange]
46+
public function offsetGet($offset);
47+
}

src/Toolkit/Core/Concern/HasUnderlyingService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ private static function loadServiceList(): void
8484
return;
8585
}
8686

87+
/** @disregard P1008 */
8788
self::doLoadServiceList($serviceName, $serviceList);
89+
/** @disregard P1008 */
8890
self::$ServiceNames[static::class] = $serviceName;
91+
/** @disregard P1008 */
8992
self::$ServiceLists[static::class] = $serviceList;
9093
self::$LoadedServices[static::class] = true;
9194
}

src/Toolkit/Core/ConfigurationManager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public function offsetExists($offset): bool
137137
*
138138
* @param string $offset
139139
* @return mixed
140+
* @disregard P1038
140141
*/
141142
#[ReturnTypeWillChange]
142143
public function offsetGet($offset)

0 commit comments

Comments
 (0)