Skip to content

Commit

Permalink
ITKDev: Updated code style to match d10
Browse files Browse the repository at this point in the history
  • Loading branch information
cableman committed Oct 16, 2024
1 parent 9021e98 commit 446e1c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Upgraded to support Drupal 10.x

## [0.0.1] - 2024-08-20

- First version of the module
- Added submodule to log user CUD events.

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/LocalTasksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function create(ContainerInterface $container): LocalTasksControll
* @return array<string, mixed>
* An array containing the form definition.
*/
public function dynamicTasks(string $type = NULL): array {
public function dynamicTasks(?string $type = NULL): array {
if (empty($type)) {
return $this->formBuilder->getForm('\Drupal\os2web_audit\Form\SettingsForm');
}
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/AuditException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AuditException extends \Exception {
*/
private string $pluginName = 'Unknown plugin';

public function __construct(string $message = "", int $code = 0, \Throwable $previous = NULL, ?string $pluginName = NULL) {
public function __construct(string $message = "", int $code = 0, ?\Throwable $previous = NULL, ?string $pluginName = NULL) {
parent::__construct($message, $code, $previous);

if (isset($pluginName)) {
Expand Down

0 comments on commit 446e1c7

Please sign in to comment.