Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
44 changes: 0 additions & 44 deletions .circleci/config.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ 7.3, 7.4, 8.0 ]
php: [ '7.3', '7.4', '8.2', '8.3', '8.4', '8.5' ]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v7
with:
fetch-depth: 0

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
!.yarn/releases
!.yarn/plugins
.pnp.*
/.phpunit.result.cache
4 changes: 2 additions & 2 deletions php/src/DataHandlers/AbstractDataHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function setId(string $id)
*/
public function getLabel()
{
return $this->_label ?? Strings::titleize(Strings::splitOnCamelCase($this->getName()));
return $this->_label ?? Strings::titleize(Strings::splitOnCamelCase((string)$this->getName()));
}

/**
Expand All @@ -116,7 +116,7 @@ public function setLabel($label)
*/
public function getPlaceholder()
{
return $this->_placeholder ?? Strings::titleize(Strings::splitOnCamelCase($this->getName()));
return $this->_placeholder ?? Strings::titleize(Strings::splitOnCamelCase((string)$this->getName()));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion php/src/DataHandlers/EnumDataHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class EnumDataHandler extends AbstractDataHandler
protected $_options = [];
protected $_inputStyle = self::INPUT_STYLE_COMBINED;

public function __construct(array $options = null)
public function __construct(?array $options = null)
{
if($options !== null)
{
Expand Down
3 changes: 2 additions & 1 deletion php/src/Form/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,15 @@ public function decorate($for): Decorator

public function getHandlerDecorator($fieldName = null): DataHandlerDecorator
{
$fieldName = $fieldName ?? '';
if(!isset($this->_handlerDecorator[$fieldName]))
{
$this->_handlerDecorator[$fieldName] = clone $this->_defaultHandlerDecorator();
}
return $this->_handlerDecorator[$fieldName];
}

public function setHandlerDecorator(DataHandlerDecorator $decorator, string $field = null)
public function setHandlerDecorator(DataHandlerDecorator $decorator, ?string $field = null)
{
if($field === null)
{
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php"
colors="true" verbose="true" timeoutForSmallTests="5" timeoutForMediumTests="10" timeoutForLargeTests="15"
convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true"
convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" convertDeprecationsToExceptions="true"
processIsolation="false" stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
Expand Down
Loading