Skip to content

Commit

Permalink
Merge pull request #23 from pluswerk/php8.3
Browse files Browse the repository at this point in the history
⬆️ add php8.3
  • Loading branch information
Kanti authored Apr 19, 2024
2 parents 532079a + a35ce9e commit ef49929
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.0', '8.1', '8.2' ]
php: [ '8.1', '8.2', '8.3' ]
typo3: [ '11', '12' ]
exclude:
- php: '8.0'
typo3: '12'
steps:
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
Expand Down
3 changes: 2 additions & 1 deletion Classes/Logger/BreadcrumbLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Pluswerk\Sentry\Logger;

use Exception;
use Psr\Log\LogLevel;
use Sentry\Breadcrumb;
use Pluswerk\Sentry\Service\Sentry;
Expand Down Expand Up @@ -39,7 +40,7 @@ public function writeLog(LogRecord $record): WriterInterface
LogLevel::NOTICE => Breadcrumb::LEVEL_INFO,
LogLevel::INFO => Breadcrumb::LEVEL_INFO,
LogLevel::DEBUG => Breadcrumb::LEVEL_DEBUG,
default => throw new \Exception(sprintf('Log level not supported "%s"', $record->getLevel())),
default => throw new Exception(sprintf('Log level not supported "%s"', $record->getLevel())),
},
Breadcrumb::TYPE_DEFAULT,
$record->getComponent(),
Expand Down
3 changes: 2 additions & 1 deletion Classes/Service/Sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Pluswerk\Sentry\Service;

use InvalidArgumentException;
use Pluswerk\Sentry\Transport\TransportFactory;
use Sentry\ClientBuilder;
use Sentry\ClientInterface;
Expand Down Expand Up @@ -57,7 +58,7 @@ protected function setup(): void
}

/**
* @throws \InvalidArgumentException
* @throws InvalidArgumentException
*/
public static function getInstance(): self
{
Expand Down
2 changes: 1 addition & 1 deletion Classes/Traits/ExceptionHandlerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function handleException(Throwable $exception): void
{
try {
Sentry::getInstance()->withScope($exception);
} catch (\Throwable) {
} catch (Throwable) {
//ignore $sentryError
}

Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"docs": "https://github.com/pluswerk/sentry/blob/master/README.md"
},
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"ext-fileinfo": "*",
"composer-runtime-api": "^2",
"http-interop/http-factory-guzzle": "^1.0",
Expand All @@ -19,11 +19,10 @@
"typo3/cms-frontend": "^11.5 || ^12.4"
},
"require-dev": {
"phpstan/extension-installer": "^1.2",
"pluswerk/grumphp-config": "^6",
"saschaegerer/phpstan-typo3": "^1.8",
"ssch/typo3-rector": "^1.1.3",
"symfony/http-client": "^5.4"
"pluswerk/grumphp-config": "^7",
"saschaegerer/phpstan-typo3": "^1.10.0",
"ssch/typo3-rector": "^2.4.0",
"symfony/http-client": "^5.4 || ^6"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 0 additions & 4 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
'author' => 'Pluswerk AG',
'author_email' => '[email protected]',
'state' => 'stable',
'internal' => '',
'uploadfolder' => '0',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => InstalledVersions::getPrettyVersion('pluswerk/sentry'),
'constraints' => [
'depends' => [
Expand Down
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare(strict_types=1);

use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
use PLUS\GrumPHPConfig\RectorSettings;
use Rector\Config\RectorConfig;
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
Expand Down Expand Up @@ -34,6 +35,7 @@
...RectorSettings::skipTypo3(),

FinalizeClassesWithoutChildrenRector::class,
ReadOnlyPropertyRector::class,
/**
* rector should not touch these files
*/
Expand Down

0 comments on commit ef49929

Please sign in to comment.