Skip to content

Commit d410824

Browse files
committed
Rector 8.0
1 parent 1fd27a3 commit d410824

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PHPFUI/InstaDoc/FileManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private function loadVendorDirectories() : void
236236

237237
$composerJsonPath = $this->composerJsonPath . 'composer.lock';
238238
$composerJsonPath = \str_replace('//', '/', $composerJsonPath);
239-
$json = \json_decode(@\file_get_contents($composerJsonPath), true, 512);
239+
$json = \json_decode(@\file_get_contents($composerJsonPath), true, 512, JSON_THROW_ON_ERROR);
240240

241241
if (! $json)
242242
{

src/PHPFUI/InstaDoc/NamespaceTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static function addNamespace(string $namespace, string $directory, bool $
7878
{
7979
$iterator = new \DirectoryIterator($directory);
8080
}
81-
catch (\Throwable $e)
81+
catch (\Throwable)
8282
{
8383
$iterator = [];
8484
}

0 commit comments

Comments
 (0)