Skip to content

Commit 1424b38

Browse files
giuseppe-arcutiremicolletstaabmDominikToJeroenVanOort
authored
Merge upstream commits (#34)
* 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 * Add .gitattributes * Explicitly select PHP 8.0 in CI * Use latest php-cs-fixer 2.17.1 * Update windowszones timezone data to 2020-12-13 * Fix typos * Reassign modified date in yearly rrule * Add test * Code style * Add test for calendar expand * adjust unit test settings for time limits Some tests were testing a bug that caused an infinite loop. Annotate those tests with large, small annotations. Turn on enforceTimeLimit, failOnWarning and failOnRisky so that the annotations are enforced when unit tests are run. Add phpunit/php-invoker to the composer require-dev becaause this is required to make the enforceTimeLimit setting effective. * Release 4.3.4 * Make use of until parameter in nextMonthly function * CS FIX * CS FIX * Fix breaking tests * create testMonthlyByDayUntil * create testMonthlyByDayUntilWithImpossibleNextOccurrence * Fix setting properties with group assignment * Unit test for adding properties with group for a VCard * Adapt style * Release 4.3.5 * tests: migrate from Travis to gh-actions * Removed travis config * Minor edit to README * Run phpunit with coverage in CI * Fix deprecated usages and return types on PHP 8.1 * sync ci.yml to match other repos * Changes that should have happened for 4.3.6 * changelog and VERSION bump for 4.3.7 * EventIterator returns wrong endTime (sabre-io#534) * Reordering of the attendees should not be a signitifcant change (sabre-io#540) * Reordering of vevent should not be a significant change (sabre-io#542) * Prepare release 4.3.8 * Allow easier extension of the timezone guessing This will ease customization of timezone-guessing as it is now gets easier to extend that process with own implementations (as long as they implement the appropriate interface) This is espechially necessary when wanting to actually guess a timezone via the rules defined in the VTIMEZONE-entry (which is currently not done) * testEmptyTimeZone * Changelog for 4.4.0 * Fix Changelog * Merge github actions 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]> Co-authored-by: Stéphane <[email protected]> Co-authored-by: Allon Moritz <[email protected]> Co-authored-by: Jair Cueva Junior <[email protected]> Co-authored-by: Parajuli Kiran <[email protected]> Co-authored-by: Cédric Anne <[email protected]> Co-authored-by: Holger Floerke <[email protected]> Co-authored-by: Andreas Heigl <[email protected]>
1 parent c26e2d4 commit 1424b38

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+979
-176
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/tests export-ignore
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/.php_cs.dist export-ignore
5+
/.travis.yml export-ignore
6+
/CHANGELOG.md export-ignore
7+
/phpstan.neon export-ignore

.github/workflows/actions.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,17 @@ jobs:
3535
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
3636
restore-keys: ${{ runner.os }}-composer-
3737

38-
- name: Install dependencies
38+
- name: Install composer dependencies
3939
run: composer install --no-progress --prefer-dist --optimize-autoloader
4040

41+
- name: Code Analysis (PHP CS-Fixer)
42+
if: matrix.code-analysis == 'yes'
43+
run: php vendor/bin/php-cs-fixer fix --dry-run --diff
44+
45+
- name: Code Analysis (PHPStan)
46+
if: matrix.code-analysis == 'yes'
47+
run: composer phpstan
48+
4149
- name: Test with phpunit
4250
run: vendor/bin/phpunit --configuration ./tests/phpunit.xml --coverage-text --coverage-clover=coverage.xml
4351

@@ -49,4 +57,4 @@ jobs:
4957
flags: tests
5058
name: codecov-umbrella
5159
yml: ./codecov.yml
52-
fail_ci_if_error: true
60+
fail_ci_if_error: true

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ bin/hoa
2121

2222
# OS X
2323
.DS_Store
24+
=======
25+
26+
# Development stuff
27+
.php_cs.cache

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
ChangeLog
22
=========
33

4+
4.7.0 (2021-12-15)
5+
------------------
6+
* #34 Merge upstream changes from sabre-io/vobject:4.4.0 into protonlabs/vobject
7+
48
4.6.1 (2021-11-04)
59
------------------
610
* #29 Fix timezone name prefixed with /
@@ -138,7 +142,7 @@ ChangeLog
138142
* #306: iTip REPLYs to the first instance of a recurring event was not handled
139143
correctly.
140144
* Slightly better error message during validation of `N` and `ADR` properties.
141-
* #312: Correctly extracing timezone in the iTip broker, even when we don't
145+
* #312: Correctly extracting timezone in the iTip broker, even when we don't
142146
have a master event. (@vkomrakov-sugar).
143147
* When validating a component's property that must appear once and which could
144148
automatically be repaired, make sure we report the change as 'repaired'.
@@ -460,7 +464,7 @@ ChangeLog
460464
* #114: VTIMEZONE is retained when generating new REQUEST objects.
461465
* #114: Support for 'MAILTO:' style email addresses (in uppercase) in the iTip
462466
broker. This improves evolution support.
463-
* #115: Using REQUEST-STATUS from REPLY messages and now propegating that into
467+
* #115: Using REQUEST-STATUS from REPLY messages and now propagating that into
464468
SCHEDULE-STATUS.
465469

466470

@@ -697,7 +701,7 @@ ChangeLog
697701
3.0.0-alpha2 (2013-05-22)
698702
-------------------------
699703

700-
* Fixed: vCard URL properties were referencing a non-existant class.
704+
* Fixed: vCard URL properties were referencing a non-existent class.
701705

702706

703707
3.0.0-alpha1 (2013-05-21)
@@ -855,7 +859,7 @@ ChangeLog
855859
properties such as N, ADR, ORG and CATEGORIES.
856860
* Added: Splitter classes, that can split up large objects (such as exports)
857861
into individual objects (thanks @DominikTo and @armin-hackmann).
858-
* Added: VFREEBUSY component, which allows easily checking wether timeslots are
862+
* Added: VFREEBUSY component, which allows easily checking whether timeslots are
859863
available.
860864
* Added: The Reader class now has a 'FORGIVING' option, which allows it to parse
861865
properties with incorrect characters in the name (at this time, it just allows

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sabre/vobject
77
The VObject library allows you to easily parse and manipulate [iCalendar](https://tools.ietf.org/html/rfc5545)
88
and [vCard](https://tools.ietf.org/html/rfc6350) objects using PHP.
99

10-
The goal of the VObject library is to create a very complete library, with an easy to use API.
10+
The goal of the VObject library is to create a very complete library, with an easy-to-use API.
1111

1212

1313
Installation

bin/bench_freebusygenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
echo "The process will be repeated 100 times to get accurate stats\n";
1212
echo "\n";
1313
echo 'Usage: '.$argv[0]." inputfile.ics\n";
14-
die();
14+
exit();
1515
}
1616

1717
list(, $inputFile) = $argv;

bin/bench_manipulatevcard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
echo 'system.';
1111
echo "\n";
1212
echo 'Usage: '.$argv[0]." inputfile.vcf\n";
13-
die();
13+
exit();
1414
}
1515

1616
list(, $inputFile) = $argv;

bin/fetch_windows_zones.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#!/usr/bin/env php
22
<?php
33

4-
$windowsZonesUrl = 'http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml';
4+
$windowsZonesUrl = 'https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xml';
55
$outputFile = __DIR__.'/../lib/timezonedata/windowszones.php';
66

77
echo 'Fetching timezone map from: '.$windowsZonesUrl, "\n";
88

99
$data = file_get_contents($windowsZonesUrl);
10-
1110
$xml = simplexml_load_string($data);
1211

1312
$map = [];
@@ -44,6 +43,6 @@
4443

4544
echo "Formatting\n";
4645

47-
exec(__DIR__.'/sabre-cs-fixer fix '.escapeshellarg($outputFile));
46+
exec(__DIR__.'/../vendor/bin/php-cs-fixer fix '.escapeshellarg($outputFile));
4847

4948
echo "Done\n";

bin/generateicalendardata.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
HI
2020
);
21-
die();
21+
exit();
2222
}
2323

2424
$events = 100;
@@ -77,7 +77,7 @@
7777
if ($result) {
7878
fwrite(STDERR, "Errors!\n");
7979
fwrite(STDERR, print_r($result, true));
80-
die(-1);
80+
exit(-1);
8181
}
8282

8383
fwrite(STDERR, "Serializing this beast\n");

bin/mergeduplicates.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919

2020
if (!class_exists('Sabre\\VObject\\Version')) {
2121
fwrite(STDERR, "Composer autoloader could not be loaded.\n");
22-
die(1);
22+
exit(1);
2323
}
2424

2525
echo 'sabre/vobject ', Version::VERSION, " duplicate contact merge tool\n";
2626

2727
if ($argc < 3) {
2828
echo "\n";
2929
echo 'Usage: ', $argv[0], " input.vcf output.vcf [debug.log]\n";
30-
die(1);
30+
exit(1);
3131
}
3232

3333
$input = fopen($argv[1], 'r');

0 commit comments

Comments
 (0)