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
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 composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"require": {
"ext-curl": "*",
"php": "^8.1",
"drush/drush": "^11.6"
"drush/drush": "^12.5"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
Expand Down
4 changes: 2 additions & 2 deletions scripts/code-analysis
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ drupal_composer() {
composer --working-dir="$drupal_dir" --no-interaction "$@"
}

# Create new Drupal 9 project
# Create new Drupal 10 project
if [ ! -f "$drupal_dir/composer.json" ]; then
composer --no-interaction create-project drupal/recommended-project:^9 "$drupal_dir"
composer --no-interaction create-project drupal/recommended-project:^10 "$drupal_dir"
fi
# Copy our code into the modules folder
mkdir -p "$drupal_dir/$module_path"
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
Loading