-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa9c5f6
commit 62052b4
Showing
7 changed files
with
322 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Modassir\Promise; | ||
|
||
\error_reporting(E_ALL); | ||
\ini_set('display_errors', 0); | ||
|
||
final class ErrorHandler | ||
{ | ||
/** | ||
* | ||
*/ | ||
private static function errorHandler() : void | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
private static function shutdown() : void | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* | ||
* @return | ||
*/ | ||
public static function PHP_ErrorHandlerActivate() | ||
{ | ||
\set_error_handler(self::errorHandler(...)); | ||
\register_shutdown_function(self::shutdown(...)); | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* The PHP Promise handling PHP promises with additional utilities and features. | ||
* The (promise) Github Repository | ||
* @see https://github.com/lazervel/promise | ||
* | ||
* @author Shahzada Modassir | ||
* @copyright (c) Shahzada Modassir 2024 | ||
* | ||
* @license MIT License | ||
* @see https://github.com/lazervel/promise/blob/main/LICENSE | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Modassir\Promise\Exception; | ||
|
||
interface ExceptionInterface extends \Throwable | ||
{ | ||
// | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* The PHP Promise handling PHP promises with additional utilities and features. | ||
* The (promise) Github Repository | ||
* @see https://github.com/lazervel/promise | ||
* | ||
* @author Shahzada Modassir | ||
* @copyright (c) Shahzada Modassir 2024 | ||
* | ||
* @license MIT License | ||
* @see https://github.com/lazervel/promise/blob/main/LICENSE | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Modassir\Promise\Exception; | ||
|
||
final class UnhandledPromiseRejection extends \Exception implements ExceptionInterface | ||
{ | ||
// | ||
} | ||
?> |
Oops, something went wrong.