Skip to content

Commit

Permalink
chore: bump Infra to 1.11 (#187)
Browse files Browse the repository at this point in the history
* chore: bump Infra to 1.11

* chore: bump Infra to 1.11

* chore: bump Infra to 1.11

* chore: bump Infra to 1.11
  • Loading branch information
dkarlovi authored Jun 24, 2024
1 parent a641342 commit a05ce84
Show file tree
Hide file tree
Showing 21 changed files with 39 additions and 63 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"nyholm/symfony-bundle-test": "^3.0",
"openspout/openspout": "^4.0",
"phpoffice/phpspreadsheet": "^2.0",
"phpunit/phpunit": "^10.5",
"sigwin/infra": "~1.9.0",
"phpunit/phpunit": "^11.2",
"sigwin/infra": "~1.11.0",
"symfony/console": "^6.4 || ^7.0",
"symfony/framework-bundle": "^6.4 || ^7.0",
"symfony/phpunit-bridge": "^6.4 || ^7.0",
Expand Down
14 changes: 14 additions & 0 deletions psalm.baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e">
<file src="src/Bridge/Symfony/Console/Application.php">
<MissingClassConstType>
<code><![CDATA[APP_NAME = '
__ __ _ _ _
\ \ / / (_) | (_)
\ V / ___ _____| | __ _ _ _ __ ___ ___
> < / _ \_ / | |/ _` | | \'__/ _ \/ __|
/ . \ __// /| | | (_| | | | | __/\__ \
/_/ \_\___/___|_|_|\__,_|_|_| \___||___/ ']]></code>
</MissingClassConstType>
</file>
</files>
1 change: 1 addition & 0 deletions psalm.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
checkForThrowsInGlobalScope="false"
ensureArrayIntOffsetsExist="false"
ensureArrayStringOffsetsExist="false"
errorBaseline="psalm.baseline.xml"
errorLevel="1"
findUnusedBaselineEntry="false"
findUnusedCode="false"
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/PhpSpreadsheet/Spreadsheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private function getActiveWorksheet(): Worksheet
}
}

private function fetchCell(string $columnName, int $rowIndex): null|float|int|string
private function fetchCell(string $columnName, int $rowIndex): float|int|string|null
{
$worksheet = $this->getActiveWorksheet();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,7 @@
use Xezilaires\Test\Functional\FunctionalTestCase;

/**
* @covers \Xezilaires\Bridge\PhpSpreadsheet\RowIterator
* @covers \Xezilaires\Bridge\PhpSpreadsheet\Spreadsheet
* @covers \Xezilaires\SpreadsheetIterator
*
* @uses \Xezilaires\Metadata\ArrayReference
* @uses \Xezilaires\Metadata\ColumnReference
* @uses \Xezilaires\Metadata\HeaderReference
* @uses \Xezilaires\Metadata\Mapping
* @uses \Xezilaires\Serializer\ObjectSerializer
*
* @internal
*
* @small
*/
#[\PHPUnit\Framework\Attributes\Small]
#[\PHPUnit\Framework\Attributes\CoversClass(\Xezilaires\Bridge\PhpSpreadsheet\RowIterator::class)]
Expand Down
4 changes: 0 additions & 4 deletions src/Bridge/PhpSpreadsheet/Test/RowIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
use Xezilaires\Bridge\PhpSpreadsheet\RowIterator;

/**
* @covers \Xezilaires\Bridge\PhpSpreadsheet\RowIterator
*
* @internal
*
* @small
*/
#[\PHPUnit\Framework\Attributes\Small]
#[\PHPUnit\Framework\Attributes\CoversClass(RowIterator::class)]
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/PhpSpreadsheet/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"sigwin/xezilaires": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^11.2",
"symfony/phpunit-bridge": "^6.4 || ^7.0",
"symfony/property-access": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.0"
Expand Down
4 changes: 0 additions & 4 deletions src/Bridge/Spout/Test/Functional/SpreadsheetIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@

/**
* @internal
*
* @coversNothing
*
* @small
*/
#[\PHPUnit\Framework\Attributes\Small]
#[\PHPUnit\Framework\Attributes\CoversClass(\Xezilaires\Bridge\Spout\RowIterator::class)]
Expand Down
4 changes: 0 additions & 4 deletions src/Bridge/Spout/Test/RowIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
use Xezilaires\Bridge\Spout\RowIterator;

/**
* @covers \Xezilaires\Bridge\Spout\RowIterator
*
* @internal
*
* @small
*/
#[\PHPUnit\Framework\Attributes\Small]
#[\PHPUnit\Framework\Attributes\CoversClass(RowIterator::class)]
Expand Down
4 changes: 0 additions & 4 deletions src/Bridge/Spout/Test/SpreadsheetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
use Xezilaires\Test\FixtureTrait;

/**
* @covers \Xezilaires\Bridge\Spout\Spreadsheet
*
* @internal
*
* @small
*/
#[\PHPUnit\Framework\Attributes\Small]
#[\PHPUnit\Framework\Attributes\CoversClass(Spreadsheet::class)]
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/Spout/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"require-dev": {
"nyholm/nsa": "^1.1",
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^11.2",
"symfony/phpunit-bridge": "^6.4 || ^7.0",
"symfony/property-access": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

final class XezilairesExtension extends Extension
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@

/**
* @internal
*
* @coversNothing
*
* @small
*/
#[\PHPUnit\Framework\Attributes\Medium]
#[\PHPUnit\Framework\Attributes\CoversClass(XezilairesExtension::class)]
Expand Down
18 changes: 14 additions & 4 deletions src/Bridge/Symfony/Test/Functional/XezilairesBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@

/**
* @internal
*
* @coversNothing
*
* @small
*/
#[\PHPUnit\Framework\Attributes\Medium]
#[\PHPUnit\Framework\Attributes\CoversClass(XezilairesBundle::class)]
Expand All @@ -52,6 +48,20 @@ final class XezilairesBundleTest extends KernelTestCase
{
use FixtureTrait;

// TODO: remove when https://github.com/symfony/symfony/issues/53812 is fixed
protected function tearDown(): void
{
parent::tearDown();
while (true) {
$previousHandler = set_exception_handler(static fn () => null);
restore_exception_handler();
if ($previousHandler === null) {
break;
}
restore_exception_handler();
}
}

/**
* @throws \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/Symfony/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"require-dev": {
"matthiasnoback/symfony-dependency-injection-test": "^5.0",
"nyholm/symfony-bundle-test": "^3.0",
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^11.2",
"sigwin/xezilaires-phpspreadsheet": "^1.0",
"sigwin/xezilaires-spout": "^1.0",
"symfony/phpunit-bridge": "^6.4 || ^7.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Xezilaires/Metadata/Mapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getReferences(): array
return $this->references;
}

public function getOption(string $option): null|bool|int|string
public function getOption(string $option): bool|int|string|null
{
return $this->options[$option];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Xezilaires/SpreadsheetIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private function readArrayReference(array $row, ArrayReference $reference): arra
/**
* @param array<string, null|float|int|string> $row
*/
private function readReference(array $row, Reference $reference): null|float|int|string
private function readReference(array $row, Reference $reference): float|int|string|null
{
switch (true) {
case $reference instanceof ColumnReference:
Expand Down
4 changes: 0 additions & 4 deletions src/Xezilaires/Test/FilterIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
use Xezilaires\FilterIterator;

/**
* @covers \Xezilaires\FilterIterator
*
* @internal
*
* @small
*/
#[\PHPUnit\Framework\Attributes\Small]
#[\PHPUnit\Framework\Attributes\CoversClass(FilterIterator::class)]
Expand Down
4 changes: 0 additions & 4 deletions src/Xezilaires/Test/Metadata/MappingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
use Xezilaires\Test\Model\Product;

/**
* @covers \Xezilaires\Metadata\Mapping
*
* @internal
*
* @small
*/
#[\PHPUnit\Framework\Attributes\Small]
#[\PHPUnit\Framework\Attributes\CoversClass(Mapping::class)]
Expand Down
9 changes: 0 additions & 9 deletions src/Xezilaires/Test/SpreadsheetIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,7 @@
use Xezilaires\SpreadsheetIterator;

/**
* @covers \Xezilaires\Metadata\Mapping
* @covers \Xezilaires\SpreadsheetIterator
*
* @uses \Xezilaires\Metadata\ArrayReference
* @uses \Xezilaires\Metadata\ColumnReference
* @uses \Xezilaires\Metadata\HeaderReference
*
* @internal
*
* @small
*/
#[\PHPUnit\Framework\Attributes\Small]
#[\PHPUnit\Framework\Attributes\CoversClass(Mapping::class)]
Expand Down
2 changes: 1 addition & 1 deletion src/Xezilaires/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require-dev": {
"nyholm/nsa": "^1.1",
"openspout/openspout": "^4.0",
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^11.2",
"symfony/console": "^6.4 || ^7.0",
"symfony/phpunit-bridge": "^6.4 || ^7.0",
"symfony/property-access": "^6.4 || ^7.0",
Expand Down

0 comments on commit a05ce84

Please sign in to comment.