Skip to content

Commit

Permalink
Merge pull request #629 from phil-davis/update-20231109
Browse files Browse the repository at this point in the history
Update CI stuff
  • Loading branch information
phil-davis authored Nov 9, 2023
2 parents e43d668 + 639475b commit 9341286
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
code-analysis: 'yes'
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"sabre/xml" : "^3.0 || ^4.0"
},
"require-dev" : {
"friendsofphp/php-cs-fixer": "^3.14",
"friendsofphp/php-cs-fixer": "^3.38",
"phpunit/phpunit" : "^9.6",
"phpunit/php-invoker" : "^2.0 || ^3.1",
"phpstan/phpstan": "^1.9"
"phpstan/phpstan": "^1.10"
},
"suggest" : {
"hoa/bench" : "If you would like to run the benchmark scripts"
Expand Down
6 changes: 3 additions & 3 deletions lib/Component/VCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,17 @@ public function validate(int $options = 0): array
}
$repaired = true;

// Otherwise, the ORG property may work
// Otherwise, the ORG property may work
} elseif (isset($this->ORG)) {
$this->FN = (string) $this->ORG;
$repaired = true;

// Otherwise, the NICKNAME property may work
// Otherwise, the NICKNAME property may work
} elseif (isset($this->NICKNAME)) {
$this->FN = (string) $this->NICKNAME;
$repaired = true;

// Otherwise, the EMAIL property may work
// Otherwise, the EMAIL property may work
} elseif (isset($this->EMAIL)) {
$this->FN = (string) $this->EMAIL;
$repaired = true;
Expand Down
2 changes: 0 additions & 2 deletions lib/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ public function destroy(): void

/**
* Returns the iterator for this object.
*
* @return ElementList
*/
#[\ReturnTypeWillChange]
public function getIterator(): ?ElementList
Expand Down
2 changes: 0 additions & 2 deletions lib/Parser/MimeDir.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,6 @@ protected function parseLine(string $line)
*
* This method strips any newlines and also takes care of unfolding.
*
* @return string
*
* @throws EofException|ParseException
*/
protected function readLine(): ?string
Expand Down
20 changes: 10 additions & 10 deletions lib/Property/VCard/DateAndOrTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ protected function xmlSerializeValue(Xml\Writer $writer): void
$value .= '---'.$r('date');
}

// # 4.3.2
// value-time = element time {
// xsd:string { pattern = "(\d\d(\d\d(\d\d)?)?|-\d\d(\d\d?)|--\d\d)"
// ~ "(Z|[+\-]\d\d(\d\d)?)?" }
// }
// # 4.3.2
// value-time = element time {
// xsd:string { pattern = "(\d\d(\d\d(\d\d)?)?|-\d\d(\d\d?)|--\d\d)"
// ~ "(Z|[+\-]\d\d(\d\d)?)?" }
// }
} elseif ((!$d('year') && !$d('month') && !$d('date'))
&& ($d('hour') || $d('minute') || $d('second'))) {
if ($d('hour')) {
Expand All @@ -276,11 +276,11 @@ protected function xmlSerializeValue(Xml\Writer $writer): void

$value .= $r('timezone');

// # 4.3.3
// value-date-time = element date-time {
// xsd:string { pattern = "(\d{8}|--\d{4}|---\d\d)T\d\d(\d\d(\d\d)?)?"
// ~ "(Z|[+\-]\d\d(\d\d)?)?" }
// }
// # 4.3.3
// value-date-time = element date-time {
// xsd:string { pattern = "(\d{8}|--\d{4}|---\d\d)T\d\d(\d\d(\d\d)?)?"
// ~ "(Z|[+\-]\d\d(\d\d)?)?" }
// }
} elseif ($d('date') && $d('hour')) {
if ($d('year') && $d('month') && $d('date')) {
$value .= $r('year').$r('month').$r('date');
Expand Down
6 changes: 0 additions & 6 deletions lib/Recur/EventIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ public function __construct($input, string $uid = null, \DateTimeZone $timeZone

/**
* Returns the date for the current position of the iterator.
*
* @return \DateTimeImmutable
*/
#[\ReturnTypeWillChange]
public function current(): ?\DateTimeImmutable
Expand All @@ -207,8 +205,6 @@ public function current(): ?\DateTimeImmutable
/**
* This method returns the start date for the current iteration of the
* event.
*
* @return \DateTimeImmutable
*/
public function getDtStart(): ?\DateTimeImmutable
{
Expand All @@ -223,8 +219,6 @@ public function getDtStart(): ?\DateTimeImmutable
* This method returns the end date for the current iteration of the
* event.
*
* @return \DateTimeImmutable
*
* @throws MaxInstancesExceededException|InvalidDataException
*/
public function getDtEnd(): ?\DateTimeImmutable
Expand Down

0 comments on commit 9341286

Please sign in to comment.