Skip to content

Commit f59c085

Browse files
committed
Merge branch 'release/5.0.3'
2 parents 151ffb8 + 81875be commit f59c085

14 files changed

+130
-106
lines changed
File renamed without changes.
File renamed without changes.

.github/workflows/sonars.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Sonars
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
- feature/*
7+
- feat/*
8+
- release/*
9+
pull_request:
10+
types: [ opened, synchronize, reopened ]
11+
jobs:
12+
sonarcloud:
13+
name: Sonars
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Setup PHP with Xdebug
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: 7.4
25+
coverage: xdebug
26+
27+
- name: Install dependencies with composer
28+
run: composer update --no-ansi --no-interaction --no-progress
29+
30+
- name: Generate coverage report with phpunit
31+
run: vendor/bin/phpunit --coverage-clover coverage.xml --log-junit report.xml
32+
33+
- name: Monitor coverage
34+
uses: slavcodev/coverage-monitor-action@v1
35+
with:
36+
github_token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
37+
coverage_path: coverage.xml
38+
threshold_alert: 95
39+
threshold_warning: 90
40+
41+
- name: Fix phpunit files paths
42+
run: sed -i 's@'$GITHUB_WORKSPACE/'@''@g' coverage.xml report.xml
43+
44+
- name: SonarCloud Scan
45+
uses: SonarSource/sonarcloud-github-action@master
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
48+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.travis.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 5.0.3 - 2023/02/09
4+
- PR #38 - type checking exception raised in php8
5+
36
## 5.0.2 - 2022/08/10
47
- PR #44 - Add #[\ReturnTypeWillChange] to AbstractStructArrayBase
58

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
"name": "Karl Pierce",
4545
"email": "[email protected]",
4646
"role": "Contributor"
47+
},
48+
{
49+
"name": "maurobn",
50+
"role": "Contributor"
4751
}
4852
],
4953
"support" : {
@@ -58,7 +62,7 @@
5862
"scripts": {
5963
"test": "vendor/bin/phpunit",
6064
"lint": "vendor/bin/php-cs-fixer fix --ansi --diff --verbose",
61-
"phpstan": "vendor/bin/phpstan analyze src --level=3"
65+
"phpstan": "vendor/bin/phpstan analyze src --level=5"
6266
},
6367
"require-dev": {
6468
"friendsofphp/php-cs-fixer": "~3.0",

phpunit.xml.dist

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php">
33
<coverage>
44
<include>
5-
<directory>./</directory>
5+
<directory>./src</directory>
66
</include>
7-
<exclude>
8-
<directory>./tests</directory>
9-
<directory>./vendor</directory>
10-
</exclude>
117
</coverage>
128
<php>
139
<ini name="error_reporting" value="-1"/>

sonar-project.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sonar.projectKey=WsdlToPhp_PackageBase
2+
sonar.organization=wsdltophp
3+
sonar.php.coverage.reportPaths=coverage.xml
4+
sonar.php.tests.reportPath=report.xml
5+
6+
sonar.sources=src/
7+
sonar.tests=tests/

src/AbstractStructArrayBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ private function getInternArrayOffset(): int
259259
* @param bool $internCall indicates that methods is calling itself
260260
* @return AbstractStructArrayBase
261261
*/
262-
private function initInternArray(array $array = [], bool $internCall = false): self
262+
private function initInternArray($array = [], bool $internCall = false): self
263263
{
264264
if (is_array($array) && count($array) > 0) {
265265
$this

0 commit comments

Comments
 (0)