Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
php:
- 8.2
- 8.3
- 8.4

steps:
- name: Checkout
Expand All @@ -63,7 +64,7 @@ jobs:
run: echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Cache dependencies installed with composer
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/composer-dependency-analyser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
php:
- 8.2
- 8.3
- 8.4

steps:
- name: Checkout
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
php:
- 8.2
- 8.3
- 8.4

steps:
- name: Checkout
Expand All @@ -51,7 +52,7 @@ jobs:
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Cache dependencies installed with composer
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"minimum-stability": "stable",
"require": {
"php": "^8.2",
"php": "~8.2||~8.3||~8.4",
"botasis/telegram-client": "^1.0",
"psr/container": "^2.0",
"psr/event-dispatcher": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Console/GetUpdatesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(
private readonly Application $application,
private readonly UpdateFactory $updateFactory,
private readonly LoggerInterface $logger = new NullLogger(),
string $name = null,
?string $name = null,
) {
parent::__construct($name);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Console/SetTelegramWebhookCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ final class SetTelegramWebhookCommand extends Command
public function __construct(
private readonly ClientInterface $client,
private readonly QuestionHelper $questionHelper,
string $name = null
?string $name = null
) {
parent::__construct($name);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/MiddlewareDispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function handle(Update $update): ResponseInterface
}

private function createDispatcher(
ContainerInterface $container = null,
?ContainerInterface $container = null,
?EventDispatcherInterface $eventDispatcher = null
): MiddlewareDispatcher {
$container = $container ?? $this->createContainer();
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/MiddlewareFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function testInvalidMiddlewareWithWrongArrayWithIntItems(): void
$this->getMiddlewareFactory()->create([7, 42]);
}

private function getMiddlewareFactory(ContainerInterface $container = null): MiddlewareFactoryInterface
private function getMiddlewareFactory(?ContainerInterface $container = null): MiddlewareFactoryInterface
{
$container = $container ?? $this->getContainer();

Expand Down
Loading