Skip to content

Commit

Permalink
Merge pull request #1627 from ConductionNL/fix/deprecations
Browse files Browse the repository at this point in the history
Fix deprecations
  • Loading branch information
rjzondervan authored Mar 19, 2024
2 parents 17c18c5 + d37c441 commit a710f00
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 306 deletions.
2 changes: 1 addition & 1 deletion api/src/Controller/ZZController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function dynamicAction(
*
* @return array The parameter arrau
*/
private function getParametersFromRequest(?array $parameters = [], ?Request $request): array
private function getParametersFromRequest(?array $parameters = [], ?Request $request = null): array
{
// Lets make sure that we always have a path
if (!isset($parameters['path'])) {
Expand Down
157 changes: 0 additions & 157 deletions api/src/Security/DigispoofAuthenticator.php

This file was deleted.

145 changes: 0 additions & 145 deletions api/src/Security/OauthAuthenticator.php

This file was deleted.

6 changes: 3 additions & 3 deletions api/src/Service/FormIOService.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private function createIDComponent(string $id, string $preSetKey = null): array
*
* @return string Extended key
*/
private function extendPreSetKey(?string $preSetKey = null, string $attrName): string
private function extendPreSetKey(string $attrName, ?string $preSetKey = null): string
{
return $preSetKey ? $preSetKey = $preSetKey.'['.$attrName.']' : $preSetKey = $attrName;
}
Expand Down Expand Up @@ -172,7 +172,7 @@ private function checkIfWeAreLooping(Attribute $attr, string $parentAttribute)
*/
private function createEntityAsAttribute(Attribute $attr, string $preSetKey = null, $defaultValue = null): array
{
$preSetKey = $this->extendPreSetKey($preSetKey, $attr->getName());
$preSetKey = $this->extendPreSetKey($attr->getName(), $preSetKey);

// if ($preSetKey == 'taxonomies[openpubAudience]') {
// var_dump($preSetKey);
Expand Down Expand Up @@ -296,7 +296,7 @@ private function createUriAttribute(Attribute $attr, string $preSetKey = null, $
*/
private function createNormalAttribute(Attribute $attr, string $preSetKey = null, $defaultValue = null): array
{
$preSetKey = $this->extendPreSetKey($preSetKey, $attr->getName());
$preSetKey = $this->extendPreSetKey($attr->getName(), $preSetKey);

$component = $this->basicComponent;
$component['label'] = $attr->getName().($attr->getRequired() ? '*' : '');
Expand Down

0 comments on commit a710f00

Please sign in to comment.