Skip to content

Commit a6e41a9

Browse files
authored
Merge pull request #259 from laminas/renovate/azjezz-psl-3.x
Update dependency azjezz/psl to v3
2 parents eed9bb9 + 97ffb62 commit a6e41a9

15 files changed

+37
-39
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM composer:2 AS composer
22

3-
FROM php:8.2-alpine
3+
FROM php:8.3-alpine
44

55
COPY --from=composer /usr/bin/composer /usr/bin/composer
66

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Application that eases release management in the Laminas organisation through GitHub actions",
55
"license": "BSD-3-Clause",
66
"require": {
7-
"php": "~8.2.0",
8-
"azjezz/psl": "^2.9.1",
7+
"php": "~8.3.0",
8+
"azjezz/psl": "^3.0.0",
99
"jwage/changelog-generator": "^1.4.0",
1010
"laminas/laminas-diactoros": "^2.26.0",
1111
"lcobucci/clock": "^3.2.0",

composer.lock

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

src/Changelog/BumpAndCommitChangelogVersion.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
interface BumpAndCommitChangelogVersion
1212
{
13-
public const BUMP_MINOR = 'bumpMinorVersion';
14-
public const BUMP_PATCH = 'bumpPatchVersion';
13+
public const string BUMP_MINOR = 'bumpMinorVersion';
14+
public const string BUMP_PATCH = 'bumpPatchVersion';
1515

1616
/**
1717
* @psalm-param self::BUMP_* $bumpType

src/Changelog/BumpAndCommitChangelogVersionViaKeepAChangelog.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
class BumpAndCommitChangelogVersionViaKeepAChangelog implements BumpAndCommitChangelogVersion
1919
{
20-
private const CHANGELOG_FILE = 'CHANGELOG.md';
20+
private const string CHANGELOG_FILE = 'CHANGELOG.md';
2121

22-
private const COMMIT_TEMPLATE = <<< 'COMMIT'
22+
private const string COMMIT_TEMPLATE = <<< 'COMMIT'
2323
Bumps changelog version to %s
2424
2525
Updates the %s file to add a changelog entry for a new %s version.

src/Changelog/ChangelogReleaseNotes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/** @psalm-immutable */
1414
class ChangelogReleaseNotes
1515
{
16-
private const CONCATENATION_STRING = "\n\n-----\n\n";
16+
private const string CONCATENATION_STRING = "\n\n-----\n\n";
1717

1818
/** @psalm-param non-empty-string $changelogFile */
1919
public static function writeChangelogFile(string $changelogFile, self $releaseNotes): void

src/Environment/EnvironmentVariables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/** @psalm-immutable */
1616
class EnvironmentVariables implements Variables
1717
{
18-
private const LOG_LEVELS = [
18+
private const array LOG_LEVELS = [
1919
'100',
2020
'200',
2121
'250',

src/Git/Value/BranchName.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ private function __construct(
1919

2020
/**
2121
* @pure
22-
* @psalm-suppress ImpureFunctionCall the {@see \Psl\Type\non_empty_string()} API is pure by design
2322
* @psalm-suppress ImpureMethodCall the {@see \Psl\Type\TypeInterface::assert()} API is conditionally pure
2423
*/
2524
public static function fromName(string $name): self

src/Github/Api/GraphQL/Query/GetMilestoneChangelog/Response/Label.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ private function __construct(
3030
* @psalm-pure
3131
*
3232
* @psalm-suppress ImpureMethodCall {@see https://github.com/azjezz/psl/issues/130}
33-
* @psalm-suppress ImpureFunctionCall {@see https://github.com/azjezz/psl/issues/130}
3433
*/
3534
public static function fromPayload(array $payload): self
3635
{

src/Github/CreateReleaseTextViaKeepAChangelog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
class CreateReleaseTextViaKeepAChangelog implements CreateReleaseText
2727
{
2828
/** @psalm-var non-empty-list<string> */
29-
private const DEFAULT_SECTIONS = [
29+
private const array DEFAULT_SECTIONS = [
3030
'Added',
3131
'Changed',
3232
'Deprecated',

0 commit comments

Comments
 (0)