fix:repo cleanup

This commit is contained in:
2025-11-08 20:09:07 +00:00
parent f1da93791d
commit dedcc73567
1204 changed files with 121800 additions and 16971 deletions
+8 -12
View File
@@ -2,28 +2,24 @@
All notable changes are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
## [6.3.2] - 2025-09-24
## [7.0.2] - 2025-09-24
### Changed
* Suppress `unexpected NAN value was coerced to string` warning triggered on PHP 8.5
## [6.3.1] - 2025-09-22
## [7.0.1] - 2025-09-22
### Changed
* Suppress `not representable as an int, cast occurred` warning triggered on PHP 8.5
## [6.3.0] - 2024-12-05
## [7.0.0] - 2025-02-07
### Added
### Removed
* Optional constructor argument to control maximum string length
* This component is no longer supported on PHP 8.2
### Deprecated
* Optional argument for `shortenedRecursiveExport()` and `shortenedExport()` to control maximum string length
[6.3.2]: https://github.com/sebastianbergmann/exporter/compare/6.3.1...6.3.2
[6.3.1]: https://github.com/sebastianbergmann/exporter/compare/6.3.0...6.3.1
[6.3.0]: https://github.com/sebastianbergmann/exporter/compare/6.2.0...6.3.0
[7.0.2]: https://github.com/sebastianbergmann/exporter/compare/7.0.1...7.0.2
[7.0.1]: https://github.com/sebastianbergmann/exporter/compare/7.0.0...7.0.1
[7.0.0]: https://github.com/sebastianbergmann/exporter/compare/6.3...7.0.0
+5 -5
View File
@@ -32,19 +32,19 @@
},
"config": {
"platform": {
"php": "8.2.0"
"php": "8.3.0"
},
"optimize-autoloader": true,
"sort-packages": true
},
"prefer-stable": true,
"require": {
"php": ">=8.2",
"php": ">=8.3",
"ext-mbstring": "*",
"sebastian/recursion-context": "^6.0"
"sebastian/recursion-context": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^11.3"
"phpunit/phpunit": "^12.0"
},
"autoload": {
"classmap": [
@@ -58,7 +58,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "6.3-dev"
"dev-main": "7.0-dev"
}
}
}
+6 -5
View File
@@ -92,7 +92,7 @@ final readonly class Exporter
$maxLengthForStrings = $this->maxLengthForStrings;
}
if (!$processed) {
if ($processed === null) {
$processed = new RecursionContext;
}
@@ -197,7 +197,7 @@ final readonly class Exporter
// private $propertyName => "\0ClassName\0propertyName"
// protected $propertyName => "\0*\0propertyName"
// public $propertyName => "propertyName"
if (preg_match('/\0.+\0(.+)/', (string) $key, $matches)) {
if (preg_match('/\0.+\0(.+)/', (string) $key, $matches) === 1) {
$key = $matches[1];
}
@@ -262,7 +262,7 @@ final readonly class Exporter
}
if (is_array($value)) {
assert(is_array($data[$key]) || is_object($data[$key]));
assert(isset($data[$key]) && (is_array($data[$key]) || is_object($data[$key])));
if ($processed->contains($data[$key]) !== false) {
$result[] = '*RECURSION*';
@@ -302,6 +302,7 @@ final readonly class Exporter
if (is_resource($value)) {
return sprintf(
'resource(%d) of type (%s)',
/** @phpstan-ignore cast.useless */
(int) $value,
get_resource_type($value),
);
@@ -330,7 +331,7 @@ final readonly class Exporter
return $this->exportString($value);
}
if (!$processed) {
if ($processed === null) {
$processed = new RecursionContext;
}
@@ -365,7 +366,7 @@ final readonly class Exporter
private function exportString(string $value): string
{
// Match for most non-printable chars somewhat taking multibyte chars into account
if (preg_match('/[^\x09-\x0d\x1b\x20-\xff]/', $value)) {
if (preg_match('/[^\x09-\x0d\x1b\x20-\xff]/', $value) === 1) {
return 'Binary String: 0x' . bin2hex($value);
}