Skip to content

Commit

Permalink
📦️ update Laravel v8.83.6
Browse files Browse the repository at this point in the history
  • Loading branch information
QWp6t committed Apr 5, 2022
1 parent c714b79 commit a56ddbb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Application.php
Expand Up @@ -33,7 +33,7 @@ class Application extends Container implements ApplicationContract, CachesConfig
*
* @var string
*/
const VERSION = '8.81.0';
const VERSION = '8.83.6';

/**
* The base path for the Laravel installation.
Expand Down
13 changes: 8 additions & 5 deletions src/Illuminate/Foundation/Bootstrap/HandleExceptions.php
Expand Up @@ -67,11 +67,11 @@ public function bootstrap(Application $app)
*/
public function handleError($level, $message, $file = '', $line = 0, $context = [])
{
if (error_reporting() & $level) {
if ($this->isDeprecation($level)) {
return $this->handleDeprecation($message, $file, $line);
}
if ($this->isDeprecation($level)) {
return $this->handleDeprecation($message, $file, $line);
}

if (error_reporting() & $level) {
throw new ErrorException($message, 0, $level, $file, $line);
}
}
Expand All @@ -86,7 +86,10 @@ public function handleError($level, $message, $file = '', $line = 0, $context =
*/
public function handleDeprecation($message, $file, $line)
{
if (! class_exists(LogManager::class)) {
if (! class_exists(LogManager::class)
|| ! $this->app->hasBeenBootstrapped()
|| $this->app->runningUnitTests()
) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php
Expand Up @@ -24,7 +24,7 @@ public function bootstrap(Application $app)
// First we will see if we have a cache configuration file. If we do, we'll load
// the configuration items from that file so that it is very quick. Otherwise
// we will need to spin through every configuration file and load them all.
if (is_file($cached = $app->getCachedConfigPath())) {
if (file_exists($cached = $app->getCachedConfigPath())) {
$items = require $cached;

$loadedFromCache = true;
Expand Down
3 changes: 3 additions & 0 deletions src/Illuminate/Foundation/Console/ServeCommand.php
Expand Up @@ -104,8 +104,11 @@ protected function startProcess($hasEnvironment)
'APP_ENV',
'LARAVEL_SAIL',
'PHP_CLI_SERVER_WORKERS',
'PHP_IDE_CONFIG',
'SYSTEMROOT',
'XDEBUG_CONFIG',
'XDEBUG_MODE',
'XDEBUG_SESSION',
]) ? [$key => $value] : [$key => false];
})->all());

Expand Down
Expand Up @@ -38,7 +38,7 @@ protected function withoutDeprecationHandling()
{
if ($this->originalDeprecationHandler == null) {
$this->originalDeprecationHandler = set_error_handler(function ($level, $message, $file = '', $line = 0) {
if (error_reporting() & $level) {
if (in_array($level, [E_DEPRECATED, E_USER_DEPRECATED]) || (error_reporting() & $level)) {
throw new ErrorException($message, 0, $level, $file, $line);
}
});
Expand Down

0 comments on commit a56ddbb

Please sign in to comment.