Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Apr 8, 2021
1 parent 9241563 commit b6e7efe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getConfigTreeBuilder()
->scalarNode('revision_table_name')->defaultValue('revisions')->end()
->scalarNode('revision_id_field_type')
->defaultValue('integer')
// NEXT_MAJOR: Use validate() instead.
// NEXT_MAJOR: Use enumNode() instead.
->beforeNormalization()
->always(static function ($value) {
if (null !== $value && !\in_array($value, self::ALLOWED_REVISION_ID_FIELD_TYPE, true)) {
Expand Down
3 changes: 3 additions & 0 deletions src/Exception/AuditException.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ abstract class AuditException extends \Exception
*/
protected $revision;

/**
* @param int|string|null $revision
*/
public function __construct(?string $className, ?array $id, $revision)
{
$this->className = $className;
Expand Down

0 comments on commit b6e7efe

Please sign in to comment.