Skip to content

Commit

Permalink
[CodeQuality] Skip blob type on TypedPropertyFromColumnTypeRector (#340
Browse files Browse the repository at this point in the history
)

* [CodeQuality] Skip blob type on TypedPropertyFromColumnTypeRector

* [CodeQuality] Skip blob type on TypedPropertyFromColumnTypeRector

* skip blob
  • Loading branch information
samsonasik authored Aug 23, 2024
1 parent 657d715 commit 4c20c2b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Rector\Doctrine\Tests\CodeQuality\Rector\Property\TypedPropertyFromColumnTypeRector\Fixture;

use Doctrine\ORM\Mapping as ORM;

class SkipBlob
{
/**
* @ORM\Column(type="blob")
*
* @var resource
*/
private $content = null;
}
8 changes: 4 additions & 4 deletions src/NodeManipulator/ColumnPropertyTypeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ public function __construct(
'varchar' => new StringType(),
'string' => new StringType(),
'char' => new StringType(),
'longblob' => new StringType(),
'blob' => new StringType(),
'mediumblob' => new StringType(),
'tinyblob' => new StringType(),
'longblob' => new MixedType(),
'blob' => new MixedType(),
'mediumblob' => new MixedType(),
'tinyblob' => new MixedType(),
'binary' => new StringType(),
'varbinary' => new StringType(),
'set' => new StringType(),
Expand Down

0 comments on commit 4c20c2b

Please sign in to comment.