Skip to content

Commit 0f03fff

Browse files
committed
Update to PHP coding standard 2.4.0
1 parent 8536d32 commit 0f03fff

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).
66

7+
## [Unreleased]
8+
### Added
9+
* *Nothing*
10+
11+
### Changed
12+
* Update shlinkio coding standard to v2.4
13+
14+
### Deprecated
15+
* *Nothing*
16+
17+
### Removed
18+
* *Nothing*
19+
20+
### Fixed
21+
* *Nothing*
22+
23+
724
## [3.3.0] - 2024-10-24
825
### Added
926
* *Nothing*

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
"require-dev": {
2323
"cuyz/valinor": "^1.12",
2424
"devster/ubench": "^2.1",
25-
"phpstan/phpstan": "^1.11",
26-
"phpunit/phpunit": "^11.3",
25+
"phpstan/phpstan": "^1.12",
26+
"phpunit/phpunit": "^11.4",
2727
"psr/simple-cache": "^2.0",
2828
"roave/security-advisories": "dev-master",
29-
"shlinkio/php-coding-standard": "~2.3.0",
29+
"shlinkio/php-coding-standard": "~2.4.0",
3030
"symfony/var-dumper": "^7.1"
3131
},
3232
"autoload": {

functions/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function formatEnvVarValue(string|int|bool|array|null $value): string
7373
/**
7474
* Loads config from $configPath, then puts all its values as env vars if they are not yet defined
7575
*/
76-
function loadEnvVarsFromConfig(string $configPath, ?array $allowedEnvVars = null): void
76+
function loadEnvVarsFromConfig(string $configPath, array|null $allowedEnvVars = null): void
7777
{
7878
$config = loadConfigFromGlob($configPath);
7979
foreach ($config as $envVar => $value) {

src/ConfigAggregator/EnvVarLoaderProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/** @deprecated Use loadEnvVarsFromConfig instead */
1010
class EnvVarLoaderProvider
1111
{
12-
public function __construct(private readonly string $configPath, private readonly ?array $allowedEnvVars = null)
12+
public function __construct(private readonly string $configPath, private readonly array|null $allowedEnvVars = null)
1313
{
1414
}
1515

0 commit comments

Comments
 (0)