Skip to content

Commit

Permalink
perf(src): improve performance by using const instead of define
Browse files Browse the repository at this point in the history
- Replaced define with const for MULTIPART_TRY_OPEN_FILE and MULTIPART_TRY_OPEN_URL
- Enhances code readability and maintainability
  • Loading branch information
guanguans committed Jul 22, 2024
1 parent e63d4f2 commit 2c09892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Foundation/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* @see https://github.com/guanguans/notify
*/

\define('MULTIPART_TRY_OPEN_FILE', 1 << 0);
\define('MULTIPART_TRY_OPEN_URL', 1 << 1);
const MULTIPART_TRY_OPEN_FILE = 1 << 0;
const MULTIPART_TRY_OPEN_URL = 1 << 1;

if (!\function_exists('error_silencer')) {
/**
Expand Down

0 comments on commit 2c09892

Please sign in to comment.