Skip to content

Commit 12bdc7e

Browse files
committed
chore: update composer assets
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 64ba54f commit 12bdc7e

File tree

7 files changed

+37
-18
lines changed

7 files changed

+37
-18
lines changed

autoload.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
echo $err;
1515
}
1616
}
17-
trigger_error(
18-
$err,
19-
E_USER_ERROR
20-
);
17+
throw new RuntimeException($err);
2118
}
2219

2320
require_once __DIR__ . '/composer/autoload_real.php';

composer.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer/InstalledVersions.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
*/
2727
class InstalledVersions
2828
{
29+
/**
30+
* @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
31+
* @internal
32+
*/
33+
private static $selfDir = null;
34+
2935
/**
3036
* @var mixed[]|null
3137
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
@@ -322,6 +328,18 @@ public static function reload($data)
322328
self::$installedIsLocalDir = false;
323329
}
324330

331+
/**
332+
* @return string
333+
*/
334+
private static function getSelfDir()
335+
{
336+
if (self::$selfDir === null) {
337+
self::$selfDir = strtr(__DIR__, '\\', '/');
338+
}
339+
340+
return self::$selfDir;
341+
}
342+
325343
/**
326344
* @return array[]
327345
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
@@ -336,7 +354,7 @@ private static function getInstalled()
336354
$copiedLocalDir = false;
337355

338356
if (self::$canGetVendors) {
339-
$selfDir = strtr(__DIR__, '\\', '/');
357+
$selfDir = self::getSelfDir();
340358
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
341359
$vendorDir = strtr($vendorDir, '\\', '/');
342360
if (isset(self::$installedByVendor[$vendorDir])) {

composer/installed.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,17 +1742,17 @@
17421742
},
17431743
{
17441744
"name": "laravel/serializable-closure",
1745-
"version": "v1.3.5",
1746-
"version_normalized": "1.3.5.0",
1745+
"version": "v1.3.7",
1746+
"version_normalized": "1.3.7.0",
17471747
"source": {
17481748
"type": "git",
17491749
"url": "https://github.com/laravel/serializable-closure.git",
1750-
"reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c"
1750+
"reference": "4f48ade902b94323ca3be7646db16209ec76be3d"
17511751
},
17521752
"dist": {
17531753
"type": "zip",
1754-
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c",
1755-
"reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c",
1754+
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/4f48ade902b94323ca3be7646db16209ec76be3d",
1755+
"reference": "4f48ade902b94323ca3be7646db16209ec76be3d",
17561756
"shasum": ""
17571757
},
17581758
"require": {
@@ -1765,7 +1765,7 @@
17651765
"phpstan/phpstan": "^1.8.2",
17661766
"symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0"
17671767
},
1768-
"time": "2024-09-23T13:33:08+00:00",
1768+
"time": "2024-11-14T18:34:49+00:00",
17691769
"type": "library",
17701770
"extra": {
17711771
"branch-alias": {

composer/installed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@
218218
'dev_requirement' => false,
219219
),
220220
'laravel/serializable-closure' => array(
221-
'pretty_version' => 'v1.3.5',
222-
'version' => '1.3.5.0',
223-
'reference' => '1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c',
221+
'pretty_version' => 'v1.3.7',
222+
'version' => '1.3.7.0',
223+
'reference' => '4f48ade902b94323ca3be7646db16209ec76be3d',
224224
'type' => 'library',
225225
'install_path' => __DIR__ . '/../laravel/serializable-closure',
226226
'aliases' => array(),

laravel/serializable-closure/src/Serializers/Native.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ protected function mapByReference(&$data)
504504
continue;
505505
}
506506

507+
if (PHP_VERSION >= 8.1 && $property->isReadOnly() && $property->class !== $reflection->name) {
508+
continue;
509+
}
510+
507511
$value = $property->getValue($instance);
508512

509513
if (is_array($value) || is_object($value)) {

laravel/serializable-closure/src/Support/ReflectionClosure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ public function isScopeRequired()
806806
}
807807

808808
/**
809-
* The the hash of the current file name.
809+
* The hash of the current file name.
810810
*
811811
* @return string
812812
*/

0 commit comments

Comments
 (0)