Skip to content

Commit

Permalink
Add docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMuller committed Jan 25, 2025
1 parent 76a6f62 commit 971969f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Validation/Rules/ImageFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@

class ImageFile extends File
{
/**
* Indicates if SVG files are allowed by default.
*
* @var bool
*/
public static $allowSvgByDefault = true;

/**
* Indicate whether SVG files are allowed by default.
*
* @param bool $allowByDefault
* @return void
*/
public static function allowSvg($allowByDefault = true)
{
static::$allowSvgByDefault = $allowByDefault;
Expand Down

0 comments on commit 971969f

Please sign in to comment.