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
4 changes: 3 additions & 1 deletion packages/default/notifier/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Symfony\Component\Notifier\Bridge\Telegram\TelegramOptions;
use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransportFactory;
use Symfony\Component\Notifier\Chatter;
Expand Down Expand Up @@ -42,7 +44,7 @@ function main(array $args): array

// Check required arguments
foreach ($requiredArgs as $arg) {
if (!isset($args[$arg])) {
if (!array_key_exists($arg, $args) || $args[$arg] === null) {
return wrap(['error' => sprintf('Please supply %s argument.', $arg)]);
}
}
Expand Down
2 changes: 2 additions & 0 deletions packages/default/notifier/test.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

error_reporting(E_ALL & ~E_DEPRECATED);

require __DIR__ . '/vendor/autoload.php';
Expand Down
2 changes: 2 additions & 0 deletions test.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

require __DIR__ . '/packages/default/notifier/vendor/autoload.php';

// Constants
Expand Down