Skip to content

Commit fd570dc

Browse files
authored
Merge pull request #1556 from cedric-anne/feature/php-8.4
Add PHP 8.4 support
2 parents 7a736b7 + a9d0a90 commit fd570dc

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3']
56+
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
5757
coverage: [ 'xdebug' ]
5858
streaming: [ false ]
5959
include:

lib/CardDAV/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ protected function negotiateVCard($input, &$mimeType = null)
800800
*
801801
* @return string
802802
*/
803-
protected function convertVCard($data, $target, array $propertiesFilter = null)
803+
protected function convertVCard($data, $target, ?array $propertiesFilter = null)
804804
{
805805
if (is_resource($data)) {
806806
$data = stream_get_contents($data);

lib/CardDAV/Xml/Property/SupportedAddressData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class SupportedAddressData implements XmlSerializable
3434
/**
3535
* Creates the property.
3636
*/
37-
public function __construct(array $supportedData = null)
37+
public function __construct(?array $supportedData = null)
3838
{
3939
if (is_null($supportedData)) {
4040
$supportedData = [

lib/DAV/Auth/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Plugin extends ServerPlugin
5858
*
5959
* @param Backend\BackendInterface $authBackend
6060
*/
61-
public function __construct(Backend\BackendInterface $authBackend = null)
61+
public function __construct(?Backend\BackendInterface $authBackend = null)
6262
{
6363
if (!is_null($authBackend)) {
6464
$this->addBackend($authBackend);

lib/DAV/Exception/Locked.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Locked extends DAV\Exception
3232
*
3333
* @param DAV\Locks\LockInfo $lock
3434
*/
35-
public function __construct(DAV\Locks\LockInfo $lock = null)
35+
public function __construct(?DAV\Locks\LockInfo $lock = null)
3636
{
3737
parent::__construct();
3838

lib/DAV/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class Server implements LoggerAwareInterface, EmitterInterface
211211
*
212212
* @throws Exception
213213
*/
214-
public function __construct($treeOrNode = null, HTTP\Sapi $sapi = null)
214+
public function __construct($treeOrNode = null, ?HTTP\Sapi $sapi = null)
215215
{
216216
if ($treeOrNode instanceof Tree) {
217217
$this->tree = $treeOrNode;
@@ -882,7 +882,7 @@ public function getHTTPHeaders($path)
882882
*
883883
* @return \Traversable
884884
*/
885-
private function generatePathNodes(PropFind $propFind, array $yieldFirst = null)
885+
private function generatePathNodes(PropFind $propFind, ?array $yieldFirst = null)
886886
{
887887
if (null !== $yieldFirst) {
888888
yield $yieldFirst;

tests/Sabre/CalDAV/SharedCalendarTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SharedCalendarTest extends \PHPUnit\Framework\TestCase
1111
{
1212
protected $backend;
1313

14-
public function getInstance(array $props = null)
14+
public function getInstance(?array $props = null)
1515
{
1616
if (is_null($props)) {
1717
$props = [

tests/Sabre/DAV/Mock/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Collection extends DAV\Collection
3434
* @param string $name
3535
* @param Collection $parent
3636
*/
37-
public function __construct($name, array $children = [], Collection $parent = null)
37+
public function __construct($name, array $children = [], ?Collection $parent = null)
3838
{
3939
$this->name = $name;
4040
foreach ($children as $key => $value) {

tests/Sabre/DAV/Mock/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class File extends DAV\File
3030
* @param Collection $parent
3131
* @param int $lastModified
3232
*/
33-
public function __construct($name, $contents, Collection $parent = null, $lastModified = -1)
33+
public function __construct($name, $contents, ?Collection $parent = null, $lastModified = -1)
3434
{
3535
$this->name = $name;
3636
$this->put($contents);

tests/Sabre/DAVACL/PrincipalBackend/Mock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Mock extends AbstractBackend
99
public $groupMembers = [];
1010
public $principals;
1111

12-
public function __construct(array $principals = null)
12+
public function __construct(?array $principals = null)
1313
{
1414
$this->principals = $principals;
1515

0 commit comments

Comments
 (0)