Skip to content

Commit

Permalink
feat: remove support for Laravel 8 and Laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
davideprevosto committed May 15, 2024
1 parent f4628c1 commit 4049c59
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 50 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a:6:{s:9:"classesIn";a:1:{s:52:"Encodia\SomethingWrong\SomethingWrongServiceProvider";a:6:{s:4:"name";s:29:"SomethingWrongServiceProvider";s:14:"namespacedName";s:52:"Encodia\SomethingWrong\SomethingWrongServiceProvider";s:9:"namespace";s:22:"Encodia\SomethingWrong";s:9:"startLine";i:8;s:7:"endLine";i:23;s:7:"methods";a:1:{s:16:"configurePackage";a:6:{s:10:"methodName";s:16:"configurePackage";s:9:"signature";s:67:"configurePackage(Spatie\LaravelPackageTools\Package $package): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:22;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:24;s:18:"commentLinesOfCode";i:5;s:21:"nonCommentLinesOfCode";i:19;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:4:{i:17;i:1;i:18;i:1;i:19;i:1;i:21;i:2;}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a:6:{s:9:"classesIn";a:1:{s:45:"Encodia\SomethingWrong\Facades\SomethingWrong";a:6:{s:4:"name";s:14:"SomethingWrong";s:14:"namespacedName";s:45:"Encodia\SomethingWrong\Facades\SomethingWrong";s:9:"namespace";s:30:"Encodia\SomethingWrong\Facades";s:9:"startLine";i:10;s:7:"endLine";i:16;s:7:"methods";a:1:{s:17:"getFacadeAccessor";a:6:{s:10:"methodName";s:17:"getFacadeAccessor";s:9:"signature";s:19:"getFacadeAccessor()";s:10:"visibility";s:9:"protected";s:9:"startLine";i:12;s:7:"endLine";i:15;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:17;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:1:{i:14;i:1;}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a:6:{s:9:"classesIn";a:1:{s:37:"Encodia\SomethingWrong\SomethingWrong";a:6:{s:4:"name";s:14:"SomethingWrong";s:14:"namespacedName";s:37:"Encodia\SomethingWrong\SomethingWrong";s:9:"namespace";s:22:"Encodia\SomethingWrong";s:9:"startLine";i:8;s:7:"endLine";i:26;s:7:"methods";a:3:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:61:"__construct(Encodia\SomethingWrong\Channels\Bugsnag $bugsnag)";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:15;s:3:"ccn";i:1;}s:9:"exception";a:6:{s:10:"methodName";s:9:"exception";s:9:"signature";s:50:"exception(Exception $exception, array $meta): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:6:"notify";a:6:{s:10:"methodName";s:6:"notify";s:9:"signature";s:42:"notify(Exception $what, array $meta): void";s:10:"visibility";s:9:"protected";s:9:"startLine";i:22;s:7:"endLine";i:25;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:27;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:27;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:3:{i:14;i:2;i:19;i:4;i:24;i:6;}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a:6:{s:9:"classesIn";a:1:{s:39:"Encodia\SomethingWrong\Channels\Bugsnag";a:6:{s:4:"name";s:7:"Bugsnag";s:14:"namespacedName";s:39:"Encodia\SomethingWrong\Channels\Bugsnag";s:9:"namespace";s:31:"Encodia\SomethingWrong\Channels";s:9:"startLine";i:8;s:7:"endLine";i:19;s:7:"methods";a:1:{s:9:"exception";a:6:{s:10:"methodName";s:9:"exception";s:9:"signature";s:50:"exception(Exception $exception, array $meta): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:1;s:21:"nonCommentLinesOfCode";i:19;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:4:{i:12;i:2;i:15;i:2;i:14;i:3;i:17;i:4;}}
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"pest_2.34.7","defects":[],"times":{"P\\Tests\\ExceptionTest::__pest_evaluable_it_can_notify_an_exception_without_meta":0.067,"P\\Tests\\ExceptionTest::__pest_evaluable_it_can_be_accessed_via_its_facade":0.005,"P\\Tests\\ExceptionTest::__pest_evaluable_it_can_notify_an_exception_with_meta":0.003}}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/support-ukraine.svg?t=1" />](https://supportukrainenow.org)

# Something wrong

[![Latest Version on Packagist](https://img.shields.io/packagist/v/encodia/laravel-something-wrong.svg?style=flat-square)](https://packagist.org/packages/encodia/laravel-something-wrong)
Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.2",
"bugsnag/bugsnag-laravel": "^2.26",
"illuminate/contracts": "^8.0|^9.0|^10.0",
"illuminate/contracts": "^10.0|^11.0",
"spatie/laravel-package-tools": "^1.9.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.8",
"nunomaduro/collision": "^6.0",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^7.0|^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.5"
"larastan/larastan": "^2.9",
"nunomaduro/collision": "^7.0|^8.0",
"orchestra/testbench": "^8.0|^9.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-laravel": "^2.4",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpstan/phpstan-phpunit": "^1.4",
"phpunit/phpunit": "^9.0|^10.5"
},
"autoload": {
"psr-4": {
Expand Down
58 changes: 21 additions & 37 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,39 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<testsuites>
<testsuite name="Encodia Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Encodia Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
39 changes: 39 additions & 0 deletions phpunit.xml.dist.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<testsuites>
<testsuite name="Encodia Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
</phpunit>

0 comments on commit 4049c59

Please sign in to comment.