Skip to content

Commit f290360

Browse files
valentinbonneaudremicolletstaabmDominikToJeroenVanOort
authored
Merge upstream changes up to 4.3.3 (#18)
* fix Bad file descriptor (7.4) (sabre-io#469) * travis: allow failure for phpstan for now (sabre-io#470) * travis: add php 7.4snapshot build (sabre-io#471) * reduce phpstan level back to 0, as level 1 is failing right now (sabre-io#472) * reduce phpstan level back to 0, as level 1 is failing right now * travis: no longer allow failures for phpstan * Fixed typo in vobject CLI help (sabre-io#477) * Release 4.2.1 (sabre-io#479) * Release 4.2.1 * Update CHANGELOG.md * Prepare next iteration (sabre-io#480) * Run phpstan on PHP >= 7.1 (sabre-io#483) * Add TZ in iTip REPLY messages * Added phpstan for tests folder (sabre-io#485) * Add PHONE-NUMBER value type (used for TEL in vCard 3.0) (sabre-io#486) Signed-off-by: Christian Kraus <[email protected]> * use latest phpstan 0.12.5 in CI * Add PHPstorm .idea to .gitignore * Fix various typos * Release 4.2.2 (sabre-io#490) * Release 4.2.2 * Update CHANGELOG.md * Prepare next iteration * Update dependencies and code style tools * Remove unneeded 'bootstrap' line from phpstan.neon * Apply php-cs-fixer code style changes * run php-cs-fixer in CI * php-cs-fixer must be at least 2.16.1 for PHP 7.4 * Use phpunit8 where possible * Fixed phpstan level 1 errors * Make sure there is no logic change * Prevent setting foreach key beforehand * Refactored fqcn strings to ::class to allow checking with phpstan (sabre-io#495) * Release 4.3.0 (sabre-io#497) * Update CHANGELOG.md * Update Version.php * Added phpstan to dev dependencies * Reset bin-dir config * Added convenient development commands * Cleaned up .gitignore These entries should be in the developer's global .gitignore * cs-fixer: don't check only the lib folder * Decoupled cs-fixer command from chosen tool * Standardize CI * Use phpunit 9 where possible * Only upload coverage when it has been collected * Replace assertRegExp with assertMatchesRegularExpression in unit test * fix an incomplete phpdoc type annotation * Release 4.3.1 * Adjust boolean vars in .travis.yml to prepare for PHP8.0 * Run unit tests on PHP8 * Fixup calendar parameter to Broker parseEvent * Release 4.3.2 * Remove Pacific-New obsolete timezone * Do composer remove --no-update in Travis * Use min php-cs-fixer 2.16.7 * Release 4.3.3 Co-authored-by: Remi Collet <[email protected]> Co-authored-by: Markus Staab <[email protected]> Co-authored-by: Dominik <[email protected]> Co-authored-by: Jeroen van Oort <[email protected]> Co-authored-by: Renaud BOYER <[email protected]> Co-authored-by: Christian Kraus <[email protected]> Co-authored-by: Thomas Müller <[email protected]> Co-authored-by: Phil Davis <[email protected]> Co-authored-by: Michael Stilkerich <[email protected]>
1 parent 10a03a8 commit f290360

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ bin/sabre-cs-fixer
1616
bin/hoa
1717

1818
# Development stuff
19-
testdata/
2019
.php_cs.cache
2120
.idea
2221

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,37 @@ php:
88
env:
99
global:
1010
- MEMCACHED_SERVER=127.0.0.1
11+
- RUN_PHPCSFIXER="TRUE"
12+
- RUN_PHPUNIT="TRUE"
1113
- RUN_PHPSTAN="FALSE"
1214
matrix:
1315
- PREFER_LOWEST="" REPORT_COVERAGE="TRUE" WITH_COVERAGE="--coverage-clover=coverage.xml"
1416
- PREFER_LOWEST="--prefer-lowest" REPORT_COVERAGE="FALSE" WITH_COVERAGE=""
1517

1618
matrix:
1719
include:
20+
- name: 'PHP8'
21+
dist: focal
22+
php: nightly
23+
env:
24+
- RUN_PHPCSFIXER="FALSE"
25+
- REPORT_COVERAGE="FALSE"
1826
- name: 'PHPStan'
1927
php: 7.4
2028
env:
29+
- RUN_PHPCSFIXER="FALSE"
30+
- RUN_PHPUNIT="FALSE"
2131
- RUN_PHPSTAN="TRUE"
2232
- REPORT_COVERAGE="FALSE"
2333
fast_finish: true
2434

2535
before_script:
36+
- if [ $RUN_PHPCSFIXER == "FALSE" ]; then composer remove --no-update --dev friendsofphp/php-cs-fixer; fi
2637
- composer update $PREFER_LOWEST
2738

2839
script:
29-
- if [ $RUN_PHPSTAN == "FALSE" ]; then php vendor/bin/php-cs-fixer fix --dry-run --diff; fi
30-
- if [ $RUN_PHPSTAN == "FALSE" ]; then php vendor/bin/phpunit --configuration tests/phpunit.xml $WITH_COVERAGE; fi
40+
- if [ $RUN_PHPCSFIXER == "TRUE" ]; then php vendor/bin/php-cs-fixer fix --dry-run --diff; fi
41+
- if [ $RUN_PHPUNIT == "TRUE" ]; then php vendor/bin/phpunit --configuration tests/phpunit.xml $WITH_COVERAGE; fi
3142
- if [ $RUN_PHPSTAN == "TRUE" ]; then composer phpstan; fi
3243

3344
after_success:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
"homepage" : "http://sabre.io/vobject/",
3333
"license" : "BSD-3-Clause",
3434
"require" : {
35-
"php" : "^7.1",
35+
"php" : "^7.1 || ^8.0",
3636
"ext-mbstring" : "*",
3737
"sabre/xml" : "^2.1"
3838
},
3939
"require-dev" : {
40-
"friendsofphp/php-cs-fixer": "~2.16.1",
40+
"friendsofphp/php-cs-fixer": "~2.16.7",
4141
"phpunit/phpunit" : "^7.5 || ^8.5 || ^9.0",
4242
"phpstan/phpstan": "^0.12"
4343
},

lib/ITip/Broker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function processMessage(Message $itipMessage, VCalendar $existingObject =
162162
*
163163
* @return array
164164
*/
165-
public function parseEvent($calendar = null, $userHref, $oldCalendar = null)
165+
public function parseEvent($calendar, $userHref, $oldCalendar = null)
166166
{
167167
if ($oldCalendar) {
168168
if (is_string($oldCalendar)) {

lib/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ class Version
1414
/**
1515
* Full version number.
1616
*/
17-
const VERSION = '4.3.4';
17+
const VERSION = '4.3.5';
1818
}

lib/timezonedata/php-bc.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@
147147
'US/Michigan',
148148
'US/Mountain',
149149
'US/Pacific',
150-
'US/Pacific-New',
151150
'US/Samoa',
152151
'WET',
153152
];

0 commit comments

Comments
 (0)