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

Chore/merge upstream master 20231228 #98

Merged
merged 235 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 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
1c66700
Fix infinite loop caused by yearly with bySetPos
Feb 14, 2022
c2a5ecd
lowercase mailto:-addresses in getNormalizedValue()
pk1234 Feb 20, 2022
8580257
Add NICKNAME fallback for VCards without FNs
Evengard Apr 2, 2022
2a62422
Fix up typo
Evengard Apr 2, 2022
f732c65
Adding test for NICKNAME fallback
Evengard Apr 2, 2022
e594139
Use === instead of ==
pk1234 May 6, 2022
7c50120
Component/select: Before uppercasing $child->group, make sure it isn'…
algernon May 12, 2022
a595790
Merge pull request #573 from algernon/component-select-no-group-fix
DeepDiver1975 May 12, 2022
3f4b735
Fix encoding detection on PHP 8.1
come-nc Jun 14, 2022
5e89cf9
Merge pull request #565 from pk1234/Normalize-address-(dav-#1250)
phil-davis Jun 24, 2022
ac49d03
Merge pull request #568 from Evengard/patch-1
phil-davis Jun 24, 2022
db542a5
Merge pull request #575 from come-nc/patch-1
phil-davis Jun 24, 2022
38b3a26
Release 4.4.2
phil-davis Jun 24, 2022
96517a3
Fix test data for NICKNAME fallback test case
phil-davis Jun 24, 2022
025833e
Fix code-style
phil-davis Jun 24, 2022
b8a44ea
Merge pull request #576 from phil-davis/prepare-4.4.2
phil-davis Jun 24, 2022
85340b7
Ignore multiple same parameter-values
heiglandreas Jul 12, 2022
404e548
Fix a comment
heiglandreas Jul 14, 2022
0fdd1d1
Merge pull request #577 from heiglandreas/fixMultipleProperties
phil-davis Jul 15, 2022
f80b396
Prepare release 4.4.3
phil-davis Jul 15, 2022
2a043b9
Merge pull request #578 from phil-davis/prepare-4.4.3
phil-davis Jul 15, 2022
cfb5ce6
Update .gitattributes
cedric-anne Jul 27, 2022
833743d
Merge pull request #579 from cedric-anne/patch-1
phil-davis Jul 27, 2022
e2d2770
PHP 8.1 deprecated support for null values in its APIs
mstilkerich Jan 14, 2022
5bdd392
Adapt style to preference of project owner
mstilkerich Jan 14, 2022
a11276d
Enable reporting of all PHP error levels in tests
mstilkerich Jan 14, 2022
e70f3ed
Fix passing null values to PHP APIs where encountered by tests
mstilkerich Jan 14, 2022
64a0d6f
Run cs fixer
mstilkerich Jan 14, 2022
e4669ae
Remove file commit by accident
mstilkerich Jan 14, 2022
13f3df9
Cli::serializeComponent does not return anything
mstilkerich Jan 16, 2022
fe6189e
Fix filter for properties without group
mstilkerich Aug 17, 2022
1aee566
And also handle a group named 0 correctly
mstilkerich Aug 17, 2022
63efe38
Style appears to prefer yoda conditions
mstilkerich Aug 17, 2022
0f625de
Merge pull request #561 from mstilkerich/fix_php81_abquery_groupfilter
phil-davis Aug 17, 2022
69e49df
Fully ignore invalid lines
heiglandreas Apr 29, 2022
7dbeb90
Merge pull request #571 from heiglandreas/ignoreInvalidIcalendarLines…
phil-davis Aug 17, 2022
a07ccff
Merge pull request #564 from ProtonMail/fix/yearly-bysetpos
phil-davis Aug 17, 2022
1c68bda
Test for issue-566
KristofferFM Mar 15, 2022
bda30eb
Solution for issue-566
KristofferFM Mar 15, 2022
5035657
Running php-cs-fixer on my to latest commits
KristofferFM Mar 18, 2022
baed3e6
Replace 253402300799 with dateUpperLimit
phil-davis Aug 17, 2022
8fedd6f
Add Issue566Test into the regular set of RRuleIteratorTest
phil-davis Aug 17, 2022
68cbd1c
Merge pull request #567 from KristofferFM/issue-566
phil-davis Aug 17, 2022
c828d73
Add support for MEMBER in a VCard
sash04ek Jul 22, 2019
3d5eda5
Merge pull request #466 from sash04ek/patch-1
phil-davis Aug 17, 2022
cd76988
Handle Vobjects without closing tag
sash04ek Dec 16, 2021
ccaec1c
Adjust test for VCALENDAR with missing END
phil-davis Aug 17, 2022
86d8c52
Merge pull request #559 from sash04ek/patch-2
phil-davis Aug 17, 2022
216e595
Fix bug in by year day
KAYLukas Nov 28, 2018
21631cb
Adjust name of test case
phil-davis Aug 17, 2022
408b591
Add test cases for large negative BYYEARDAY values that cross 29 Feb
phil-davis Aug 17, 2022
48d4716
Merge pull request #582 from phil-davis/by-year-day-436
phil-davis Aug 17, 2022
56f41cc
Prepare 4.5.0
phil-davis Aug 17, 2022
d1fdc0c
Merge pull request #583 from phil-davis/prepare-4.5.0
phil-davis Aug 17, 2022
87037b2
Modernize code
tcitworld Jan 21, 2022
0e77faf
Disable php version < 7.4 on CI
tcitworld Jan 21, 2022
790cfeb
Update composer dependcies to the latest
phil-davis Aug 19, 2022
48edc23
Apply cs-fixer code style changes
phil-davis Aug 19, 2022
c00f27a
Remove unneeded VEvent variable declaration
phil-davis Aug 19, 2022
3c0b05d
Remove unneeded VCard variable declaration
phil-davis Aug 19, 2022
45f6740
More type declaration stuff (1)
phil-davis Aug 19, 2022
82505da
calendar parameter to parseEventInfo cannot be null
phil-davis Aug 21, 2022
19d9929
Make Broker processMessageReply return null instead of void
phil-davis Aug 21, 2022
39e499b
Adjust lib/Parser code
phil-davis Aug 22, 2022
3abc817
Adjust lib/Property code
phil-davis Aug 22, 2022
b775bd6
Adjust lib/Recur code
phil-davis Aug 22, 2022
3139aba
Adjust lib/Splitter code
phil-davis Aug 22, 2022
0a2c6e2
Adjust lib/TimezoneGuesser code
phil-davis Aug 22, 2022
bfadbad
Adjust parameters, return types, new methods in tests
phil-davis Aug 22, 2022
f576177
Add .php-cs-fixer.dist.php to itself
phil-davis Aug 23, 2022
521e509
exit with status 1 if insufficient args are provided to bench_freebus…
phil-davis Aug 23, 2022
49dbd1b
Merge pull request #586 from phil-davis/php-7.4-types
phil-davis Aug 23, 2022
3b4ee24
Fix code-style
phil-davis Sep 5, 2022
7c585e6
Merge pull request #590 from phil-davis/fix-code-style
phil-davis Sep 5, 2022
9531bcb
Adjust some grammar
phil-davis Sep 26, 2022
bc48391
Merge pull request #594 from phil-davis/grammar-20220926
phil-davis Sep 26, 2022
f41f276
Remove utf8_encode
phil-davis Oct 9, 2022
8157443
Merge pull request #597 from phil-davis/remove-utf8_encode
phil-davis Oct 9, 2022
981b1df
Add PHP 8.2 to CI
phil-davis Oct 9, 2022
35b41d7
Merge pull request #598 from phil-davis/add-php-8.2-to-ci
phil-davis Oct 9, 2022
4407454
Prepare 4.5.1
phil-davis Oct 9, 2022
7b17e07
Merge pull request #600 from phil-davis/from-4.5.1
phil-davis Oct 12, 2022
3b51619
Adjust code style to meet current php-cs-fixer
phil-davis Jan 20, 2023
3bef1cf
Skip GMT+n timezone test cases on PHP 8.1.14 and 8.2.1
phil-davis Jan 20, 2023
041ceaf
Merge pull request #605 from phil-davis/fix-ci-20230120
phil-davis Jan 20, 2023
21918bf
Support sabre/xml v4
gharlan Jan 19, 2023
3af541a
Merge pull request #603 from gharlan/patch-1
phil-davis Jan 20, 2023
0ddcea9
Prepare 4.5.2
phil-davis Jan 20, 2023
5f6665f
Merge pull request #606 from phil-davis/prepare-4.5.2
phil-davis Jan 20, 2023
9277464
chore: fix ci deprecations
Chris8934 Feb 6, 2023
8445295
Add dependabot to create GH action version update PRs
Rotzbua Feb 6, 2023
375a242
Apply cs-fixer suggested changes
phil-davis Feb 7, 2023
fbf79a4
Merge pull request #608 from Chris53897/feature/improve-ci
phil-davis Feb 7, 2023
887b750
Bump require-dev dependencies
phil-davis Feb 7, 2023
6aff45c
Merge pull request #610 from phil-davis/bump-require-dev2023-02-07
phil-davis Feb 7, 2023
435d081
Call static assert functions with self::
phil-davis Feb 8, 2023
198196c
Merge pull request #611 from phil-davis/self-assert-phpunit
phil-davis Feb 8, 2023
d152c68
Apply cs-fixer changes
phil-davis Jun 28, 2023
ac56915
Merge pull request #620 from phil-davis/cs-fixer-20230628
phil-davis Jun 28, 2023
43b1118
Make cs-fixer pass
phil-davis Aug 17, 2023
e43d668
Merge pull request #624 from phil-davis/cs-fixer-20230817
phil-davis Aug 17, 2023
cca5f8e
Bump actions/checkout from 3 to 4
phil-davis Nov 9, 2023
639475b
Adjust code so that cs-fixer will pass
phil-davis Nov 9, 2023
9341286
Merge pull request #629 from phil-davis/update-20231109
phil-davis Nov 9, 2023
f1c6936
fixed issue: Undefined index: plusminus #467
sash04ek Jun 20, 2023
e4d7c4e
Add unit test for parsing a zero duration
phil-davis Nov 9, 2023
c832cc3
Merge pull request #619 from sash04ek/patch-3
phil-davis Nov 9, 2023
9627731
Create Issue467Test.php
sash04ek Jul 19, 2023
47ad4b9
Merge pull request #622 from sash04ek/patch-4
phil-davis Nov 9, 2023
9f097fa
Add composer to dependabot.yml
phil-davis Nov 14, 2023
154a84d
Merge pull request #609 from Rotzbua/patch-1
phil-davis Nov 14, 2023
b6b32ec
Add PHP 8.3 to CI
phil-davis Nov 19, 2023
a5df355
Merge pull request #632 from phil-davis/php-8.3-ci
phil-davis Nov 19, 2023
8639abe
Merge remote-tracking branch 'upstream/master' into chore/merge-upstr…
Dec 28, 2023
1a90852
make test pass from both sides
Dec 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/tests export-ignore
/.github/ export-ignore
/tests/ export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php_cs.dist export-ignore
Expand Down
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
56 changes: 30 additions & 26 deletions .github/workflows/actions.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,47 @@
name: Tests

on: [push]

name: continuous-integration
on:
push:
branches:
- master
- release/*
pull_request:
jobs:
phpunit:
unit-testing:
name: PHPUnit (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4', '8.0', '8.1']

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

php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3']
coverage: ['pcov']
code-analysis: ['no']
include:
- php-versions: '7.4'
coverage: 'none'
code-analysis: 'yes'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
coverage: pcov
extensions: mbstring, dom, fileinfo, mysql, redis, opcache
coverage: ${{ matrix.coverage }}
tools: composer

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache composer dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
# Use composer.json for key, if composer.lock is not committed.
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install composer dependencies
Expand All @@ -47,13 +56,8 @@ jobs:
run: composer phpstan

- name: Test with phpunit
run: vendor/bin/phpunit --configuration ./tests/phpunit.xml --coverage-text --coverage-clover=coverage.xml
run: vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: tests
name: codecov-umbrella
fail_ci_if_error: true
- name: Code Coverage
uses: codecov/codecov-action@v3
if: matrix.coverage != 'none'
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ tests/temp
tests/.phpunit.result.cache

# Development stuff
.php_cs.cache
.php-cs-fixer.cache
15 changes: 15 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

$config = new PhpCsFixer\Config();
$config->getFinder()
->exclude('vendor')
->in(__DIR__)
->append([
__FILE__,
]);
$config->setRules([
'@PSR1' => true,
'@Symfony' => true,
]);

return $config;
12 changes: 0 additions & 12 deletions .php_cs.dist

This file was deleted.

121 changes: 118 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,121 @@ ChangeLog
* #3 Add daily occurrences to nextMonth and NextYear
* #4 Enhance fast forward speed if no count value has been given

4.5.2 (2023-01-20)
------------------

* #603: Support sabre/xml v4 (@gharlan)

4.5.1 (2022-10-09)
------------------

* #597: Remove utf8_encode to easily support PHP 8.2 (@phil-davis)

4.5.0 (2022-08-17)
------------------

* #579: Update .gitattributes (@cedric-anne)
* #561: PHP 8.1 deprecated support for null values in its APIs (@mstilkerich)
* #571: Fully ignore invalid lines (@heiglandreas)
* #564: Fix infinite loop caused by yearly with bySetPos (@liurxliu)
* #567: Endless loop problem in RRuleIterator::nextDaily (@KristofferFM)
* #466: Add support for MEMBER in a VCard (@sash04ek)
* #559: Handle Vobjects without closing tag (@sash04ek)
* #582: Fix bug in by year day (@KAYLukas)

4.4.3 (2022-07-15)
------------------

* #577: Ignore multiple same parameter-values (@heiglandreas)

4.4.2 (2022-06-24)
------------------

* #565: lowercase mailto:-addresses in getNormalizedValue() (@pk1234)
* #568: Add NICKNAME fallback for VCards without FNs (@Evengard)
* #573: Component/select: Before uppercasing $child->group, make sure it isn't null (@algernon)
* #575: Fix encoding detection on PHP 8.1 (@come-nc)

4.4.1 (2021-12-07)
------------------

#557: Fix Iterator method signatures and avoid passing null as separator for implode (PHP 8.1 support) (@come-nc)

4.4.0 (2021-11-15)
------------------

#548: Allow easier extension of the timezone guessing (@heiglandreas)

4.3.8 (2021-11-14)
------------------

* #538: fix EventIterator returns wrong end endTime (@floerke)
* #541: Reordering of the attendees is not a significant change (@floerke)
* #543: Reordering of vevent is not a significant change (@floerke)

4.3.7 (2021-11-04)
------------------

* #551: version bump that was missed in 4.3.6 (@phil-davis)

4.3.6 (2021-11-04)
------------------

* #544: Fix deprecated usages and return types on PHP 8.1 (@cedric-anne)

4.3.5 (2021-02-12)
------------------

* #523: Fix setting properties with group assignment (@mstilkerich)
* #532: Make use of until parameter in nextMonthly function (@jaircuevajunior)

4.3.4 (2021-02-04)
------------------

* #529: Reassign modified date in yearly rrule (@laoneo)
* #525: Add .gitattributes to reduce package size (@fezfez)

4.3.3 (2020-11-09)
------------------

* #519: Remove US/Pacific-New obsolete timezone (@phil-davis)

4.3.2 (2020-10-03)
------------------

* #513: Added Support for PHP 8.0 (@phil-davis)

4.3.1 (2020-07-13)
------------------

* #510: Fix an incomplete phpdoc type annotation (@mstilkerich)
* #505: Refactor unit test code for phpunit9 (@phil-davis)
* #500: Standardize CI (@phil-davis)
* #496: CI tooling changes (@JeroenVanOort)

4.3.0 (2020-01-31)
------------------

* Added support for PHP 7.4, dropped support for PHP 7.0 (@phil-davis)
* #487: Added phpstan coverage, updated testsuite for phpunit8 (@phil-davis, @JeroenVanOort)
* #495: refactored maps to use ::class notation (@JeroenVanOort)

4.2.2 (2020-01-14)
------------------

* #465: Add TZ in iTip REPLY iTip messages
* #486: Add PHONE-NUMBER value type (used for TEL in vCard 3.0)

4.2.1 (2019-12-18)
------------------

* #469, #451: fix compat with php 7.4
* #443: prevent running in indefinite loop
* #449: Preventing creating a component for a root document
* #450: Fix parse with option Forgiving with trailing equal
* #459: fixed typo in VCalendar which resulting in usage of the wrong TimeZone
* #462: Broker::parseEventForOrganizer copies DTSTAMP from $eventInfo that causes broken scheduling

4.2.0 (2019-02-19)
------------------

Expand Down Expand Up @@ -629,7 +744,7 @@ ChangeLog
* Updated: Windows timezone mapping to latest version from unicode.org
* Changed: The timezone maps are now loaded in from external files, in
lib/Sabre/VObject/timezonedata.
* Added: Fixing badly encoded URL's from google contacts vcards.
* Added: Fixing badly encoded URL's from Google contacts vcards.
* Fixed: Issue #68. Couldn't decode properties ending in a colon.
* Fixed: Issue #72. RecurrenceIterator should respect timezone in the UNTIL
clause.
Expand Down Expand Up @@ -703,7 +818,7 @@ ChangeLog
* Added: Utility to convert between 2.1, 3.0 and 4.0 vCards.
* Added: You can now add() multiple parameters to a property in one call.
* Added: Parameter::has() for easily checking if a parameter value exists.
* Added: VCard::preferred() to find a preferred email, phone number, etc for a
* Added: VCard::preferred() to find a preferred email, phone number, etc. for a
contact.
* Changed: All $duration properties are now public.
* Added: A few validators for iCalendar documents.
Expand Down Expand Up @@ -900,7 +1015,7 @@ ChangeLog
------------------

* Fixed: Microsoft re-uses their magic numbers for different timezones,
specifically id 2 for both Sarajevo and Lisbon). A workaround was added to
(specifically id 2 for both Sarajevo and Lisbon). A workaround was added to
deal with this.


Expand Down
2 changes: 1 addition & 1 deletion bin/bench_freebusygenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
echo "The process will be repeated 100 times to get accurate stats\n";
echo "\n";
echo 'Usage: '.$argv[0]." inputfile.ics\n";
exit();
exit(1);
}

list(, $inputFile) = $argv;
Expand Down
2 changes: 1 addition & 1 deletion bin/bench_manipulatevcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
echo 'system.';
echo "\n";
echo 'Usage: '.$argv[0]." inputfile.vcf\n";
exit();
exit;
}

list(, $inputFile) = $argv;
Expand Down
4 changes: 2 additions & 2 deletions bin/generate_vcards
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Sabre\VObject;

// This sucks.. we have to try to find the composer autoloader. But chances
// are, we can't find it this way. So we'll do our bestest
// This sucks. we have to try to find the composer autoloader. But chances
// are, we can't find it this way. So we'll do our best.
$paths = [
__DIR__ . '/../vendor/autoload.php', // In case vobject is cloned directly
__DIR__ . '/../../../autoload.php', // In case vobject is a composer dependency.
Expand Down
2 changes: 1 addition & 1 deletion bin/generateicalendardata.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

HI
);
exit();
exit;
}

$events = 100;
Expand Down
4 changes: 2 additions & 2 deletions bin/mergeduplicates.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Sabre\VObject;

// This sucks.. we have to try to find the composer autoloader. But chances
// are, we can't find it this way. So we'll do our bestest
// This sucks. We have to try to find the composer autoloader. But chances
// are, we can't find it this way. So we'll do our best.
$paths = [
__DIR__.'/../vendor/autoload.php', // In case vobject is cloned directly
__DIR__.'/../../../autoload.php', // In case vobject is a composer dependency.
Expand Down
2 changes: 1 addition & 1 deletion bin/rrulebench.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
echo 'system.';
echo "\n";
echo 'Usage: '.$argv[0]." inputfile.ics startdate enddate\n";
exit();
exit;
}

list(, $inputFile, $startDate, $endDate) = $argv;
Expand Down
4 changes: 2 additions & 2 deletions bin/vobject
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Sabre\VObject;

// This sucks.. we have to try to find the composer autoloader. But chances
// are, we can't find it this way. So we'll do our bestest
// This sucks. We have to try to find the composer autoloader. But chances
// are, we can't find it this way. So we'll do our best.
$paths = [
__DIR__ . '/../vendor/autoload.php', // In case vobject is cloned directly
__DIR__ . '/../../../autoload.php', // In case vobject is a composer dependency.
Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@
"homepage" : "http://sabre.io/vobject/",
"license" : "BSD-3-Clause",
"require" : {
"php" : "^7.1 || ^8.0",
"php" : "^7.4 || ^8.0",
"ext-mbstring" : "*",
"sabre/xml" : "^2.1"
"ext-json" : "*",
"sabre/xml" : "^3.0 || ^4.0"
},
"require-dev" : {
"friendsofphp/php-cs-fixer": "~2.17.1",
"phpunit/phpunit" : "^7.5 || ^8.5 || ^9.0",
"friendsofphp/php-cs-fixer": "^3.38",
"phpunit/phpunit" : "^9.6",
"phpunit/php-invoker" : "^2.0 || ^3.1",
"phpstan/phpstan": "^0.12"
"phpstan/phpstan": "^1.10"
},
"suggest" : {
"hoa/bench" : "If you would like to run the benchmark scripts"
Expand Down Expand Up @@ -90,7 +91,7 @@
},
"scripts": {
"phpstan": [
"phpstan analyse lib tests"
"phpstan analyse lib tests --memory-limit 1G"
],
"cs-fixer": [
"php-cs-fixer fix"
Expand Down
Loading