Skip to content

Commit

Permalink
8.3 Updates (#275)
Browse files Browse the repository at this point in the history
* 8.3 Updates

* versions
  • Loading branch information
jaydiablo authored Apr 19, 2024
1 parent 6bc85f7 commit dc6bafe
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/[email protected]
with:
Expand All @@ -32,7 +32,7 @@ jobs:
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: php${{ matrix.php-versions }}-composer-${{ matrix.composer-args }}-${{ hashFiles('**/composer.json') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
],
"homepage": "http://framework.zend.com/",
"license": "BSD-3-Clause",
"prefer-stable": true,
"require": {
"ext-iconv": "*",
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"diablomedia/zendframework1-exception": "^1.0.0",
"diablomedia/zendframework1-cache": "^1.0.0",
"diablomedia/zendframework1-loader": "^1.0.0",
"diablomedia/zendframework1-locale": "^1.0.5"
"diablomedia/zendframework1-exception": "^1.1.1",
"diablomedia/zendframework1-cache": "^1.0.6",
"diablomedia/zendframework1-loader": "^1.0.5",
"diablomedia/zendframework1-locale": "^1.0.6"
},
"autoload": {
"psr-0": {
Expand All @@ -34,9 +35,9 @@
"require-dev": {
"phpunit/phpunit": "^9.6.19 || ^10.5.18",
"phpstan/phpstan": "1.10.67",
"friendsofphp/php-cs-fixer": "3.53.0",
"friendsofphp/php-cs-fixer": "3.54.0",
"maglnet/composer-require-checker": "^3.0.0",
"phpro/grumphp-shim": "^1.5.0"
"phpro/grumphp-shim": "^2.0.0"
},
"include-path": [
"./src"
Expand Down
14 changes: 1 addition & 13 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
beStrictAboutTestsThatDoNotTestAnything="true"
backupGlobals="true"
stderr="true"
colors="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.cache"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" beStrictAboutTestsThatDoNotTestAnything="true" backupGlobals="true" stderr="true" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" displayDetailsOnTestsThatTriggerDeprecations="true" displayDetailsOnTestsThatTriggerErrors="true" displayDetailsOnTestsThatTriggerNotices="true" displayDetailsOnTestsThatTriggerWarnings="true" failOnDeprecation="true" failOnNotice="true">
<testsuites>
<testsuite name="default">
<directory>./tests</directory>
Expand Down
2 changes: 2 additions & 0 deletions tests/Zend/Date/DateObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ public function testDayOfWeek()

public function testCalcSunInternal()
{
$this->markTestSkipped('The functions that this test tests are deprecated in PHP now');

$date = new Zend_Date_DateObjectTestHelper(10000000);
// PHP 7.2.0+ uses a newer algorithm for sunrise/sunset calculation apparently.
// Seems to be changed in this commit of "timelib":
Expand Down
2 changes: 2 additions & 0 deletions tests/Zend/DateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3790,6 +3790,8 @@ public function testReducedParams()
*/
public function testSunFunc()
{
$this->markTestSkipped('The functions that this test tests are deprecated in PHP now');

$locale = new Zend_Locale('de_AT');
$date = new Zend_Date(1010101010, $locale);
$date->setTimezone(date_default_timezone_get());
Expand Down

0 comments on commit dc6bafe

Please sign in to comment.