Skip to content

Commit

Permalink
Update changelog + doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Feb 10, 2024
1 parent 555c38d commit c71ea13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Complete refactoring of Fortress. Mostly enforcing strict types, updating PHPDoc

- `UserFrosting\Fortress\RequestSchema\RequestSchemaInterface` now extends `\Illuminate\Contracts\Config\Repository`. The interface itself is otherwise unchanged.

- `UserFrosting\Fortress\RequestDataTransformer` is ***deprecated*** and replaced by `\UserFrosting\Fortress\Transformer\RequestDataTransformer`. `\UserFrosting\Fortress\RequestDataTransformerInterface` is also ***deprecated*** and replaced by `\UserFrosting\Fortress\Transformer\RequestDataTransformerInterface`. When using the new class, instead of passing the schema in the constructor, you pass it directly to `transform()` or `transformField()`. For example :
- `UserFrosting\Fortress\RequestDataTransformer` is ***deprecated*** and replaced by `\UserFrosting\Fortress\Transformer\RequestDataTransformer` (*notice the difference in the namespace!*). `\UserFrosting\Fortress\RequestDataTransformerInterface` is also ***deprecated*** and replaced by `\UserFrosting\Fortress\Transformer\RequestDataTransformerInterface`. When using the new class, instead of passing the schema in the constructor, you pass it directly to `transform()` or `transformField()`. For example :
```php
// Before
$transformer = new \UserFrosting\Fortress\RequestDataTransformer($schema);
Expand All @@ -42,7 +42,7 @@ Complete refactoring of Fortress. Mostly enforcing strict types, updating PHPDoc
$result = $transformer->transform($schema, $data, 'skip');
```

- `\UserFrosting\Fortress\ServerSideValidator` is ***deprecated*** and replaced by `\UserFrosting\Fortress\Validator\ServerSideValidator`. `\UserFrosting\Fortress\ServerSideValidatorInterface` is also ***deprecated*** and replaced by `\UserFrosting\Fortress\Validator\ServerSideValidatorInterface`. When using the new class, instead of passing the schema in the constructor, you pass it directly to `validate()`. For example :
- `\UserFrosting\Fortress\ServerSideValidator` is ***deprecated*** and replaced by `\UserFrosting\Fortress\Validator\ServerSideValidator` (*notice the difference in the namespace!*). `\UserFrosting\Fortress\ServerSideValidatorInterface` is also ***deprecated*** and replaced by `\UserFrosting\Fortress\Validator\ServerSideValidatorInterface`. When using the new class, instead of passing the schema in the constructor, you pass it directly to `validate()`. For example :
```php
// Before
$validator = new \UserFrosting\Fortress\ServerSideValidator($schema, $this->translator);
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/Driver/FileTagSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class FileTagSet extends TagSet
*
* @var TaggableFileStore
*/
// @phpstan-ignore-next-line
// @phpstan-ignore-next-line - This is the correct type
protected $store;

/**
Expand Down

0 comments on commit c71ea13

Please sign in to comment.