Skip to content

Commit 22ce088

Browse files
committed
feat: Add global exception handler
1 parent 075ed45 commit 22ce088

15 files changed

+865
-736
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# WordPress Exceptions
1+
# WP Exceptions
22

3-
Don't feel sorry to interrupt. WordPress exceptions made simple.
3+
Stop returning WP_Error's. Throw exceptions instead.

composer.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "matapatos/wp-exceptions",
2+
"name": "attributes-php/wp-exceptions",
33
"type": "library",
44
"license": "MIT",
5-
"description": "Don't feel sorry to interrupt. WordPress exceptions made easy",
5+
"description": "Rely on exceptions instead of the WP_Error. WordPress exceptions made easy",
66
"authors": [
77
{
88
"name": "André Gil"
@@ -17,24 +17,23 @@
1717
},
1818
"autoload": {
1919
"psr-4": {
20-
"Wp\\Exceptions\\": "src/"
20+
"Attributes\\Wp\\Exceptions\\": "src/"
2121
}
2222
},
2323
"autoload-dev": {
2424
"psr-4": {
25-
"Wp\\Exceptions\\Tests\\": "tests/"
25+
"Attributes\\Wp\\Exceptions\\Tests\\": "tests/"
2626
}
2727
},
2828
"require": {
29-
"php": "^7.4|^8.0",
30-
"illuminate/contracts": ">=5.5",
31-
"symfony/http-foundation": ">=5.0"
29+
"php": "^7.4|^8.0"
3230
},
3331
"require-dev": {
3432
"mockery/mockery": "^1.6",
3533
"brain/monkey": "2.*",
3634
"dingo-d/wp-pest": "^1.6",
37-
"laravel/pint": "*"
35+
"laravel/pint": "*",
36+
"rector/rector": "^2.2"
3837
},
3938
"prefer-stable": true,
4039
"scripts": {

0 commit comments

Comments
 (0)