Skip to content

Commit

Permalink
Merge pull request #14 from OPUS4/4.7.2-zf1f
Browse files Browse the repository at this point in the history
Kompatibilität mit PHP 8.1
  • Loading branch information
j3nsch authored Feb 3, 2023
2 parents f2f2b18 + e6874bf commit 7bbd1ac
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 15 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,30 @@ on:
jobs:
build:

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
php-versions: ['7.1', '7.4', '8.1']

name: PHP ${{ matrix.php-versions }} Test

steps:
- uses: actions/checkout@v3

- name: Setup PHP 7.1
- name: Setup PHP ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: '7.1'
php-version: ${{ matrix.php-versions }}

- name: Check PHP Version
run: php -v

- name: Install Composer and Dependencies
run: curl -s http://getcomposer.org/installer | php && php composer.phar self-update && php composer.phar install

- name: Full Analysis with Coverage
run: php composer.phar check
- name: Tests
run: php composer.phar test

- name: Coding Standard Check
run: php composer.phar cs-check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ build

# Other
**/.DS_Store
.phpunit.result.cache
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
],
"homepage": "http://www.opus-repository.org",
"require": {
"zendframework/zendframework1": "1.12.*"
"opus4/zf1-future": "1.21.*"
},
"require-dev": {
"phpunit/phpunit": "6.*",
"laminas/laminas-coding-standard": "<2.3"
"phpunit/phpunit": "<9",
"opus4-repo/codesniffer": "dev-laminas"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Opus\\Doi\\": "src/"
Expand All @@ -40,4 +42,4 @@
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
}
6 changes: 3 additions & 3 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<ruleset name="Zend Framework coding standard">
<rule ref="./vendor/laminas/laminas-coding-standard/src/LaminasCodingStandard/ruleset.xml"/>
<ruleset name="OPUS 4 Coding Standard">
<rule ref="./vendor/opus4-repo/codesniffer/src/ruleset.xml"/>
<file>src</file>
<file>test</file>
</ruleset>
</ruleset>
6 changes: 5 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* along with OPUS; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @copyright Copyright (c) 2018-2022, OPUS 4 development team
* @copyright Copyright (c) 2018, OPUS 4 development team
* @license http://www.gnu.org/licenses/gpl.html General Public License
*/

Expand All @@ -39,12 +39,16 @@

class Client
{
/** @var string */
private $username;

/** @var string */
private $password;

/** @var string */
private $serviceUrl;

/** @var Zend_Log */
private $log;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/ClientException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* along with OPUS; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @copyright Copyright (c) 2018-2022, OPUS 4 development team
* @copyright Copyright (c) 2018, OPUS 4 development team
* @license http://www.gnu.org/licenses/gpl.html General Public License
*/

Expand Down
2 changes: 1 addition & 1 deletion test/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* along with OPUS; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @copyright Copyright (c) 2018-2022, OPUS 4 development team
* @copyright Copyright (c) 2018, OPUS 4 development team
* @license http://www.gnu.org/licenses/gpl.html General Public License
*/

Expand Down

0 comments on commit 7bbd1ac

Please sign in to comment.