Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream commits #36

Merged
merged 125 commits into from Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
dc4b8a6
fix Bad file descriptor (7.4) (#469)
remicollet Oct 9, 2019
26d8ecf
travis: allow failure for phpstan for now (#470)
staabm Oct 9, 2019
c2d75db
travis: add php 7.4snapshot build (#471)
staabm Oct 9, 2019
ebe9748
reduce phpstan level back to 0, as level 1 is failing right now (#472)
staabm Oct 9, 2019
2de7a4c
Fixed typo in vobject CLI help (#477)
DominikTo Nov 13, 2019
6d7476f
Release 4.2.1 (#479)
staabm Dec 18, 2019
1356b64
Prepare next iteration (#480)
staabm Dec 18, 2019
26673bb
Run phpstan on PHP >= 7.1 (#483)
JeroenVanOort Jan 2, 2020
7642fd7
Add TZ in iTip REPLY messages
renaudboyer Jul 11, 2019
82d2d6a
Added phpstan for tests folder (#485)
JeroenVanOort Jan 4, 2020
17e6eea
Add PHONE-NUMBER value type (used for TEL in vCard 3.0) (#486)
hanzi Jan 6, 2020
a26a998
Merge pull request #465 from renaudboyer/add-broker-itip-process-tz-t…
DeepDiver1975 Jan 8, 2020
346bd88
use latest phpstan 0.12.5 in CI
phil-davis Jan 14, 2020
c14af2a
Add PHPstorm .idea to .gitignore
phil-davis Jan 14, 2020
0fec2b0
Fix various typos
phil-davis Jan 14, 2020
449616b
Release 4.2.2 (#490)
staabm Jan 14, 2020
01ab958
Prepare next iteration
staabm Jan 14, 2020
df805ce
Update dependencies and code style tools
phil-davis Jan 26, 2020
4c55982
Remove unneeded 'bootstrap' line from phpstan.neon
phil-davis Jan 26, 2020
b1f9665
Merge pull request #491 from phil-davis/update-infrastructure-20200126
phil-davis Jan 26, 2020
ce46be4
Apply php-cs-fixer code style changes
phil-davis Jan 26, 2020
f154971
run php-cs-fixer in CI
phil-davis Jan 26, 2020
5b828a9
php-cs-fixer must be at least 2.16.1 for PHP 7.4
phil-davis Jan 26, 2020
458bf94
Use phpunit8 where possible
phil-davis Jan 29, 2020
621d344
Fixed phpstan level 1 errors
JeroenVanOort Jan 7, 2020
c476d93
Make sure there is no logic change
JeroenVanOort Jan 8, 2020
36d00ee
Prevent setting foreach key beforehand
JeroenVanOort Jan 8, 2020
db2eee8
Merge pull request #487 from webparking/phpstan-level-1
phil-davis Jan 30, 2020
1af8f3f
Refactored fqcn strings to ::class to allow checking with phpstan (#495)
JeroenVanOort Jan 31, 2020
5b2248d
Release 4.3.0 (#497)
staabm Jan 31, 2020
c0224ca
Added phpstan to dev dependencies
JeroenVanOort Jan 31, 2020
6f6b093
Reset bin-dir config
JeroenVanOort Jan 31, 2020
874f389
Added convenient development commands
JeroenVanOort Jan 31, 2020
4b759b2
Cleaned up .gitignore
JeroenVanOort Jan 31, 2020
79bb4f0
cs-fixer: don't check only the lib folder
JeroenVanOort Feb 1, 2020
5bd174f
Decoupled cs-fixer command from chosen tool
JeroenVanOort Feb 1, 2020
4972914
Merge pull request #496 from webparking/various-infra-changes
phil-davis Feb 2, 2020
6b04751
Standardize CI
phil-davis Feb 10, 2020
07db2ee
Use phpunit 9 where possible
phil-davis Feb 10, 2020
22067ec
Only upload coverage when it has been collected
phil-davis Feb 10, 2020
d529dda
Merge pull request #500 from phil-davis/standardize-ci-20200210
phil-davis Feb 10, 2020
d29010a
Replace assertRegExp with assertMatchesRegularExpression in unit test
phil-davis Jun 21, 2020
e3823bd
Merge pull request #505 from phil-davis/deprecated-assertRegExp
phil-davis Jun 23, 2020
3f25520
fix an incomplete phpdoc type annotation
mstilkerich Jul 6, 2020
a29c710
Merge pull request #510 from mstilkerich/phpdoc_type_annotations
phil-davis Jul 6, 2020
b4c6737
Release 4.3.1
phil-davis Jul 13, 2020
a7feca8
Merge pull request #511 from phil-davis/changelog-4.3.1
phil-davis Jul 13, 2020
cfe4963
Adjust boolean vars in .travis.yml to prepare for PHP8.0
phil-davis Oct 3, 2020
a1a898a
Run unit tests on PHP8
phil-davis Oct 3, 2020
ad7ed41
Fixup calendar parameter to Broker parseEvent
phil-davis Oct 3, 2020
fcc921d
Merge pull request #513 from phil-davis/test-with-php-8.0
phil-davis Oct 3, 2020
433b88a
Release 4.3.2
phil-davis Oct 3, 2020
e17daaf
Merge pull request #514 from phil-davis/prepare-release-4.3.2
phil-davis Oct 3, 2020
15644b9
Remove Pacific-New obsolete timezone
phil-davis Nov 8, 2020
0552fa2
Do composer remove --no-update in Travis
phil-davis Nov 8, 2020
6dbc4a3
Use min php-cs-fixer 2.16.7
phil-davis Nov 8, 2020
0b443d6
Merge pull request #519 from phil-davis/remove-Pacific-New-timezone
phil-davis Nov 8, 2020
8e34e2e
Release 4.3.3
phil-davis Nov 9, 2020
58f9f9b
Merge pull request #522 from phil-davis/prepare-release-4.3.3
phil-davis Nov 9, 2020
362a448
Add .gitattributes
fezfez Nov 27, 2020
4884ec1
Merge pull request #525 from fezfez/add-gitattributes
phil-davis Nov 28, 2020
4a92383
Explicitly select PHP 8.0 in CI
phil-davis Dec 10, 2020
2e4e5d6
Merge pull request #527 from sabre-io/phil-davis-patch-1
phil-davis Dec 10, 2020
2fd911f
Use latest php-cs-fixer 2.17.1
phil-davis Dec 13, 2020
0633ced
Update windowszones timezone data to 2020-12-13
phil-davis Dec 13, 2020
96d330d
Fix typos
phil-davis Dec 13, 2020
da42738
Merge pull request #528 from phil-davis/use-latest-php-cs-fixer
phil-davis Dec 14, 2020
6cf62b5
Reassign modified date in yearly rrule
laoneo Feb 2, 2021
ea97e13
Add test
laoneo Feb 3, 2021
67c6ee3
Code style
laoneo Feb 3, 2021
7e48c32
Add test for calendar expand
laoneo Feb 3, 2021
b571095
adjust unit test settings for time limits
phil-davis Feb 3, 2021
20d6c73
Merge pull request #529 from laoneo/patch-1
phil-davis Feb 4, 2021
3ee2401
Release 4.3.4
phil-davis Feb 4, 2021
3168acd
Merge pull request #531 from phil-davis/prepare-release-4.3.4
phil-davis Feb 4, 2021
e8b5ea4
Make use of until parameter in nextMonthly function
jaircuevajunior Feb 10, 2021
6c263ce
CS FIX
jaircuevajunior Feb 10, 2021
1f2e2e5
CS FIX
jaircuevajunior Feb 10, 2021
6d3f4ee
Fix breaking tests
jaircuevajunior Feb 10, 2021
1bed299
create testMonthlyByDayUntil
jaircuevajunior Feb 11, 2021
1bbae65
create testMonthlyByDayUntilWithImpossibleNextOccurrence
jaircuevajunior Feb 11, 2021
38bc2d2
Merge pull request #532 from jaircuevajunior/fix-montly-not-respectin…
phil-davis Feb 12, 2021
9708bd9
Fix setting properties with group assignment
mstilkerich Nov 14, 2020
930b748
Unit test for adding properties with group for a VCard
mstilkerich Nov 17, 2020
31c9187
Adapt style
mstilkerich Nov 17, 2020
7de7811
Merge pull request #523 from mstilkerich/fix_set_properties_with_groups
phil-davis Feb 12, 2021
6439b62
Release 4.3.5
phil-davis Feb 12, 2021
d8a0a9a
Merge pull request #533 from phil-davis/prepare-release-4.3.5
phil-davis Feb 12, 2021
502bc80
tests: migrate from Travis to gh-actions
kiranparajuli589 Oct 8, 2021
6a32c6c
Removed travis config
kiranparajuli589 Oct 8, 2021
1bf6d36
Merge pull request #545 from kiranparajuli589/feat/gh-actions
phil-davis Oct 8, 2021
a7798a3
Minor edit to README
phil-davis Oct 8, 2021
94e63e7
Run phpunit with coverage in CI
phil-davis Oct 8, 2021
eb3d10e
Merge pull request #546 from phil-davis/test-ci-20211008
phil-davis Oct 8, 2021
bb3bfeb
Fix deprecated usages and return types on PHP 8.1
cedric-anne Oct 6, 2021
f40f3bf
Merge pull request #544 from cedric-anne/fix/php8.1
phil-davis Oct 29, 2021
a9dc7a9
sync ci.yml to match other repos
phil-davis Nov 3, 2021
0bd8c87
Merge pull request #549 from phil-davis/sync-ci-yml
phil-davis Nov 3, 2021
8de260f
Changes that should have happened for 4.3.6
phil-davis Nov 4, 2021
89b3c18
Merge pull request #550 from phil-davis/version-4.3.6
phil-davis Nov 4, 2021
a3b1d59
changelog and VERSION bump for 4.3.7
phil-davis Nov 4, 2021
c3fa8c8
Merge pull request #551 from phil-davis/prepare-4.3.7
phil-davis Nov 4, 2021
bfe37ff
EventIterator returns wrong endTime (#534)
floerke Aug 4, 2021
6ef9328
Merge pull request #538 from floerke/issue-534
phil-davis Nov 14, 2021
5f81c0f
Reordering of the attendees should not be a signitifcant change (sabr…
floerke Sep 10, 2021
5c7ab23
Merge pull request #541 from floerke/issue-540
phil-davis Nov 14, 2021
8ee715a
Reordering of vevent should not be a significant change (#542)
floerke Sep 10, 2021
e5361c1
Merge pull request #543 from floerke/issue-542
phil-davis Nov 14, 2021
7cb4ddd
Prepare release 4.3.8
phil-davis Nov 14, 2021
a7460c5
Merge pull request #552 from phil-davis/prepare-4.3.8
phil-davis Nov 14, 2021
87c8def
Allow easier extension of the timezone guessing
heiglandreas Oct 29, 2021
ff902c6
testEmptyTimeZone
phil-davis Nov 15, 2021
9157772
Merge pull request #548 from heiglandreas/allowMoreTimezoneGuesser
phil-davis Nov 15, 2021
962b5ee
Changelog for 4.4.0
phil-davis Nov 15, 2021
0a2e27c
Merge pull request #554 from phil-davis/prepare-4.4.0
phil-davis Nov 16, 2021
68fe7d3
Fix Iterator method signatures
come-nc Dec 7, 2021
07a329e
Avoid passing null as separator for implode
come-nc Dec 7, 2021
015d5a9
Merge pull request #557 from come-nc/fix/php-8.1-fixes
phil-davis Dec 7, 2021
9c94b07
Prepare release 4.4.1
phil-davis Dec 7, 2021
06feff3
Merge pull request #558 from phil-davis/prepare-4.4.1
phil-davis Dec 7, 2021
5a56d63
Merge branch 'master' of github.com:sabre-io/vobject into feat/merge-…
valentinbonneaud Dec 15, 2021
95b3634
Rebase fix
valentinbonneaud Dec 15, 2021
6ed06b4
Add PHP8.1 CI
valentinbonneaud Dec 15, 2021
bb55eac
Remove PHPUnit update
valentinbonneaud Dec 15, 2021
fca20ff
Fix PHP8.1 tests
valentinbonneaud Dec 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4', '8.0']
php-versions: ['7.4', '8.0', '8.1']

runs-on: ${{ matrix.operating-system }}

Expand Down
18 changes: 0 additions & 18 deletions .gitignore
Expand Up @@ -5,23 +5,5 @@ tests/cov/
tests/temp
tests/.phpunit.result.cache

#vim
.*.swp

#binaries
bin/phpunit
bin/phpcs
bin/php-cs-fixer
bin/sabre-cs-fixer
bin/hoa

# Development stuff
.php_cs.cache
.idea

# OS X
.DS_Store
=======

# Development stuff
.php_cs.cache
3 changes: 1 addition & 2 deletions .php_cs.dist
Expand Up @@ -6,8 +6,7 @@ $config->getFinder()
->in(__DIR__);
$config->setRules([
'@PSR1' => true,
'@Symfony' => true,
'phpdoc_summary' => false
'@Symfony' => true
]);

return $config;
49 changes: 0 additions & 49 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion lib/Parser/MimeDir.php
Expand Up @@ -518,7 +518,7 @@ protected function readProperty($line)
*
* Now for the parameters
*
* If delimiter is not set (null) this method will just return a string.
* If delimiter is not set (empty string) this method will just return a string.
* If it's a comma or a semi-colon the string will be split on those
* characters, and always return an array.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Property.php
Expand Up @@ -52,7 +52,7 @@ abstract class Property extends Node
* In case this is a multi-value property. This string will be used as a
* delimiter.
*
* @var string|null
* @var string
*/
public $delimiter = ';';

Expand Down
4 changes: 2 additions & 2 deletions lib/Property/Binary.php
Expand Up @@ -24,9 +24,9 @@ class Binary extends Property
* In case this is a multi-value property. This string will be used as a
* delimiter.
*
* @var string|null
* @var string
*/
public $delimiter = null;
public $delimiter = '';

/**
* Updates the current value.
Expand Down
2 changes: 1 addition & 1 deletion lib/Property/FloatValue.php
Expand Up @@ -21,7 +21,7 @@ class FloatValue extends Property
* In case this is a multi-value property. This string will be used as a
* delimiter.
*
* @var string|null
* @var string
*/
public $delimiter = ';';

Expand Down
4 changes: 2 additions & 2 deletions lib/Property/ICalendar/CalAddress.php
Expand Up @@ -19,9 +19,9 @@ class CalAddress extends Text
* In case this is a multi-value property. This string will be used as a
* delimiter.
*
* @var string|null
* @var string
*/
public $delimiter = null;
public $delimiter = '';

/**
* Returns the type of value.
Expand Down
2 changes: 1 addition & 1 deletion lib/Property/ICalendar/Duration.php
Expand Up @@ -22,7 +22,7 @@ class Duration extends Property
* In case this is a multi-value property. This string will be used as a
* delimiter.
*
* @var string|null
* @var string
*/
public $delimiter = ',';

Expand Down
2 changes: 1 addition & 1 deletion lib/Property/ICalendar/Period.php
Expand Up @@ -23,7 +23,7 @@ class Period extends Property
* In case this is a multi-value property. This string will be used as a
* delimiter.
*
* @var string|null
* @var string
*/
public $delimiter = ',';

Expand Down
4 changes: 2 additions & 2 deletions lib/Property/Time.php
Expand Up @@ -19,9 +19,9 @@ class Time extends Text
* In case this is a multi-value property. This string will be used as a
* delimiter.
*
* @var string|null
* @var string
*/
public $delimiter = null;
public $delimiter = '';

/**
* Returns the type of value.
Expand Down
4 changes: 2 additions & 2 deletions lib/Property/Uri.php
Expand Up @@ -20,9 +20,9 @@ class Uri extends Text
* In case this is a multi-value property. This string will be used as a
* delimiter.
*
* @var string|null
* @var string
*/
public $delimiter = null;
public $delimiter = '';

/**
* Returns the type of value.
Expand Down
4 changes: 2 additions & 2 deletions lib/Property/UtcOffset.php
Expand Up @@ -17,9 +17,9 @@ class UtcOffset extends Text
* In case this is a multi-value property. This string will be used as a
* delimiter.
*
* @var string|null
* @var string
*/
public $delimiter = null;
public $delimiter = '';

/**
* Returns the type of value.
Expand Down
4 changes: 2 additions & 2 deletions lib/Property/VCard/DateAndOrTime.php
Expand Up @@ -24,9 +24,9 @@ class DateAndOrTime extends Property
/**
* Field separator.
*
* @var string|null
* @var string
*/
public $delimiter = null;
public $delimiter = '';

/**
* Returns the type of value.
Expand Down
4 changes: 2 additions & 2 deletions lib/Property/VCard/TimeStamp.php
Expand Up @@ -21,9 +21,9 @@ class TimeStamp extends Text
* In case this is a multi-value property. This string will be used as a
* delimiter.
*
* @var string|null
* @var string
*/
public $delimiter = null;
public $delimiter = '';

/**
* Returns the type of value.
Expand Down
9 changes: 9 additions & 0 deletions lib/Recur/EventIterator.php
Expand Up @@ -198,6 +198,7 @@ public function __construct($input, $uid = null, DateTimeZone $timeZone = null)
*
* @return DateTimeImmutable
*/
#[\ReturnTypeWillChange]
public function current()
{
if ($this->currentDate) {
Expand Down Expand Up @@ -285,6 +286,7 @@ public function getEventObject()
*
* @return int
*/
#[\ReturnTypeWillChange]
public function key()
{
// The counter is always 1 ahead.
Expand All @@ -297,6 +299,7 @@ public function key()
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function valid()
{
if ($this->counter > Settings::$maxRecurrences && -1 !== Settings::$maxRecurrences) {
Expand All @@ -308,7 +311,10 @@ public function valid()

/**
* Sets the iterator back to the starting point.
*
* @return void
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->recurIterator->rewind();
Expand All @@ -331,7 +337,10 @@ public function rewind()

/**
* Advances the iterator with one step.
*
* @return void
*/
#[\ReturnTypeWillChange]
public function next()
{
$this->currentOverriddenEvent = null;
Expand Down
9 changes: 9 additions & 0 deletions lib/Recur/RDateIterator.php
Expand Up @@ -35,6 +35,7 @@ public function __construct($rrule, DateTimeInterface $start)

/* Implementation of the Iterator interface {{{ */

#[\ReturnTypeWillChange]
public function current()
{
if (!$this->valid()) {
Expand All @@ -49,6 +50,7 @@ public function current()
*
* @return int
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->counter;
Expand All @@ -60,14 +62,18 @@ public function key()
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function valid()
{
return $this->counter <= count($this->dates);
}

/**
* Resets the iterator.
*
* @return void
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->currentDate = clone $this->startDate;
Expand All @@ -76,7 +82,10 @@ public function rewind()

/**
* Goes on to the next iteration.
*
* @return void
*/
#[\ReturnTypeWillChange]
public function next()
{
++$this->counter;
Expand Down
17 changes: 16 additions & 1 deletion lib/Recur/RRuleIterator.php
Expand Up @@ -37,6 +37,7 @@ public function __construct($rrule, DateTimeInterface $start)

/* Implementation of the Iterator interface {{{ */

#[\ReturnTypeWillChange]
public function current()
{
if (!$this->valid()) {
Expand All @@ -51,6 +52,7 @@ public function current()
*
* @return int
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->counter;
Expand All @@ -63,6 +65,7 @@ public function key()
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function valid()
{
if (null === $this->currentDate) {
Expand All @@ -77,7 +80,10 @@ public function valid()

/**
* Resets the iterator.
*
* @return void
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->currentDate = clone $this->startDate;
Expand All @@ -88,8 +94,10 @@ public function rewind()
* Goes on to the next iteration.
*
* @param int $amount
* @return void
*/
public function next($amount = 1)
#[\ReturnTypeWillChange]
public function next(int $amount = 1)
{
// Otherwise, we find the next event in the normal RRULE
// sequence.
Expand Down Expand Up @@ -640,6 +648,9 @@ protected function nextMonthly($amount = 1)
// This goes to 0 because we need to start counting at the
// beginning.
$currentDayOfMonth = 0;

// For some reason the "until" parameter was not being used here,
// that's why the workaround of the 10000 year bug was needed at all
$currentHourOfMonth = 0;
$currentMinuteOfMonth = 0;
$currentSecondOfMonth = 0;
Expand All @@ -650,6 +661,10 @@ protected function nextMonthly($amount = 1)
if ($this->until && $this->currentDate->getTimestamp() >= $this->until->getTimestamp()) {
return;
}
// let's stop it before the "until" parameter date
if ($this->until && $this->currentDate->getTimestamp() >= $this->until->getTimestamp()) {
return;
}

// To prevent running this forever (better: until we hit the max date of DateTimeImmutable) we simply
// stop at 9999-12-31. Looks like the year 10000 problem is not solved in php ....
Expand Down