Skip to content

Commit

Permalink
Merge branch 'hotfix/phpstan-var' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed May 9, 2023
2 parents 2ad31e6 + 1203286 commit 0c111e4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/config/GeneralConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -2469,7 +2469,8 @@ class GeneralConfig extends BaseConfig
public bool $sanitizeCpImageUploads = true;

/**
* @var 'None'|'Lax'|'Strict'|null The [SameSite](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite) value that should be set on Craft cookies, if any.
* @var string|null The [SameSite](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite) value that should be set on Craft cookies, if any.
* @phpstan-var 'None'|'Lax'|'Strict'|null
*
* This can be set to `'None'`, `'Lax'`, `'Strict'`, or `null`.
*
Expand Down
3 changes: 2 additions & 1 deletion src/fields/PlainText.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public static function valueType(): string
}

/**
* @var 'normal'|'enlarged' The UI mode of the field.
* @var string The UI mode of the field.
* @phpstan-var 'normal'|'enlarged'
* @since 3.5.0
*/
public string $uiMode = 'normal';
Expand Down
3 changes: 2 additions & 1 deletion src/models/FsListing.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class FsListing extends Model
private string $basename;

/**
* @var 'file'|'dir' Type of listing. Can be "file" or "dir".
* @var string Type of listing. Can be "file" or "dir".
* @phpstan-var 'file'|'dir'
*/
private string $type;

Expand Down
6 changes: 4 additions & 2 deletions src/models/ImageTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ class ImageTransform extends Model
public string $mode = 'crop';

/**
* @var 'top-left'|'top-center'|'top-right'|'center-left'|'center-center'|'center-right'|'bottom-left'|'bottom-center'|'bottom-right' Position
* @var string Position
* @phpstan-var 'top-left'|'top-center'|'top-right'|'center-left'|'center-center'|'center-right'|'bottom-left'|'bottom-center'|'bottom-right'
*/
public string $position = 'center-center';

/**
* @var 'none'|'line'|'plane'|'partition' Interlace
* @var string Interlace
* @phpstan-var 'none'|'line'|'plane'|'partition'
*/
public string $interlace = 'none';

Expand Down

0 comments on commit 0c111e4

Please sign in to comment.