Upgrade to PHP 8.1
This commit is contained in:
parent
2499dc46b7
commit
27c6845b4b
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
runs-on: ${{ matrix.operating-system }}
|
runs-on: ${{ matrix.operating-system }}
|
||||||
name: Tests - PHP 8.0 on ${{ matrix.operating-system }}
|
name: Tests - PHP 8.1 on ${{ matrix.operating-system }}
|
||||||
env:
|
env:
|
||||||
extensions: zip, xmlreader, dom
|
extensions: zip, xmlreader, dom
|
||||||
cache-key: cache-matrix-v1 # can be any string, change to clear the extension cache.
|
cache-key: cache-matrix-v1 # can be any string, change to clear the extension cache.
|
||||||
@ -20,7 +20,7 @@ jobs:
|
|||||||
id: extcache
|
id: extcache
|
||||||
uses: shivammathur/cache-extensions@v1
|
uses: shivammathur/cache-extensions@v1
|
||||||
with:
|
with:
|
||||||
php-version: '8.0'
|
php-version: '8.1'
|
||||||
extensions: ${{ env.extensions }}
|
extensions: ${{ env.extensions }}
|
||||||
key: ${{ env.cache-key }}
|
key: ${{ env.cache-key }}
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ jobs:
|
|||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
|
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
|
||||||
with:
|
with:
|
||||||
php-version: '8.0'
|
php-version: '8.1'
|
||||||
extensions: ${{ env.extensions }}
|
extensions: ${{ env.extensions }}
|
||||||
|
|
||||||
- name: Get composer cache directory
|
- name: Get composer cache directory
|
||||||
@ -59,7 +59,7 @@ jobs:
|
|||||||
tests-on-older-php:
|
tests-on-older-php:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: ['7.3', '7.4']
|
php-versions: ['7.3', '7.4', '8.0']
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Tests - PHP ${{ matrix.php-versions }}
|
name: Tests - PHP ${{ matrix.php-versions }}
|
||||||
env:
|
env:
|
||||||
@ -123,7 +123,7 @@ jobs:
|
|||||||
id: extcache
|
id: extcache
|
||||||
uses: shivammathur/cache-extensions@v1
|
uses: shivammathur/cache-extensions@v1
|
||||||
with:
|
with:
|
||||||
php-version: '7.4'
|
php-version: '8.1'
|
||||||
extensions: ${{ env.extensions }}
|
extensions: ${{ env.extensions }}
|
||||||
key: ${{ env.cache-key }}
|
key: ${{ env.cache-key }}
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ jobs:
|
|||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '7.4'
|
php-version: '8.1'
|
||||||
extensions: ${{ env.extensions }}
|
extensions: ${{ env.extensions }}
|
||||||
|
|
||||||
- name: Get composer cache directory
|
- name: Get composer cache directory
|
||||||
@ -182,7 +182,7 @@ jobs:
|
|||||||
id: extcache
|
id: extcache
|
||||||
uses: shivammathur/cache-extensions@v1
|
uses: shivammathur/cache-extensions@v1
|
||||||
with:
|
with:
|
||||||
php-version: '8.0'
|
php-version: '8.1'
|
||||||
extensions: ${{ env.extensions }}
|
extensions: ${{ env.extensions }}
|
||||||
key: ${{ env.cache-key }}
|
key: ${{ env.cache-key }}
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ jobs:
|
|||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.0'
|
php-version: '8.1'
|
||||||
extensions: ${{ env.extensions }}
|
extensions: ${{ env.extensions }}
|
||||||
|
|
||||||
- name: Get composer cache directory
|
- name: Get composer cache directory
|
||||||
@ -232,7 +232,7 @@ jobs:
|
|||||||
id: extcache
|
id: extcache
|
||||||
uses: shivammathur/cache-extensions@v1
|
uses: shivammathur/cache-extensions@v1
|
||||||
with:
|
with:
|
||||||
php-version: '8.0'
|
php-version: '8.1'
|
||||||
extensions: ${{ env.extensions }}
|
extensions: ${{ env.extensions }}
|
||||||
key: ${{ env.cache-key }}
|
key: ${{ env.cache-key }}
|
||||||
|
|
||||||
@ -246,7 +246,7 @@ jobs:
|
|||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.0'
|
php-version: '8.1'
|
||||||
extensions: ${{ env.extensions }}
|
extensions: ${{ env.extensions }}
|
||||||
tools: phpstan
|
tools: phpstan
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ class CellValueFormatterTest extends TestCase
|
|||||||
->method('getAttribute')
|
->method('getAttribute')
|
||||||
->will($this->returnValueMap([
|
->will($this->returnValueMap([
|
||||||
[CellValueFormatter::XML_ATTRIBUTE_TYPE, CellValueFormatter::CELL_TYPE_NUMERIC],
|
[CellValueFormatter::XML_ATTRIBUTE_TYPE, CellValueFormatter::CELL_TYPE_NUMERIC],
|
||||||
[CellValueFormatter::XML_ATTRIBUTE_STYLE_ID, 123],
|
[CellValueFormatter::XML_ATTRIBUTE_STYLE_ID, '123'],
|
||||||
]));
|
]));
|
||||||
|
|
||||||
$nodeMock
|
$nodeMock
|
||||||
@ -88,7 +88,7 @@ class CellValueFormatterTest extends TestCase
|
|||||||
->with(CellValueFormatter::XML_NODE_VALUE)
|
->with(CellValueFormatter::XML_NODE_VALUE)
|
||||||
->will($this->returnValue($nodeListMock));
|
->will($this->returnValue($nodeListMock));
|
||||||
|
|
||||||
/** @var StyleManager|\PHPUnit_Framework_MockObject_MockObject $styleManagerMock */
|
/** @var StyleManager|\PHPUnit\Framework\MockObject\MockObject $styleManagerMock */
|
||||||
$styleManagerMock = $this->createMock(StyleManager::class);
|
$styleManagerMock = $this->createMock(StyleManager::class);
|
||||||
|
|
||||||
$styleManagerMock
|
$styleManagerMock
|
||||||
@ -149,7 +149,7 @@ class CellValueFormatterTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testFormatNumericCellValueWithNumbers($value, $expectedFormattedValue, $expectedType)
|
public function testFormatNumericCellValueWithNumbers($value, $expectedFormattedValue, $expectedType)
|
||||||
{
|
{
|
||||||
/** @var StyleManager|\PHPUnit_Framework_MockObject_MockObject $styleManagerMock */
|
/** @var StyleManager|\PHPUnit\Framework\MockObject\MockObject $styleManagerMock */
|
||||||
$styleManagerMock = $this->createMock(StyleManager::class);
|
$styleManagerMock = $this->createMock(StyleManager::class);
|
||||||
$styleManagerMock
|
$styleManagerMock
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user