Skip to content

Commit

Permalink
Remove php 5.5 ClassName::name syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Nov 9, 2016
1 parent 2d2fe62 commit 2ba664d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sources/lib/PropertyInfo/Extractor/PommExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,27 +112,27 @@ private function createPropertyType($pomm_type)
break;
case 'Timestamp':
$type = Type::BUILTIN_TYPE_OBJECT;
$name = \DateTime::class;
$name = 'DateTime';
break;
case 'Interval':
$type = Type::BUILTIN_TYPE_OBJECT;
$name = \DateInterval::class;
$name = 'DateInterval';
break;
case 'Point':
$type = Type::BUILTIN_TYPE_OBJECT;
$name = \PommProject\Foundation\Converter\Type\Point::class;
$name = 'PommProject\Foundation\Converter\Type\Point';
break;
case 'Circle':
$type = Type::BUILTIN_TYPE_OBJECT;
$name = \PommProject\Foundation\Converter\Type\Circle::class;
$name = 'PommProject\Foundation\Converter\Type\Circle';
break;
case 'NumberRange':
$type = Type::BUILTIN_TYPE_OBJECT;
$name = \PommProject\Foundation\Converter\Type\NumRange::class;
$name = 'PommProject\Foundation\Converter\Type\NumRange';
break;
case 'TsRange':
$type = Type::BUILTIN_TYPE_OBJECT;
$name = \PommProject\Foundation\Converter\Type\TsRange::class;
$name = 'PommProject\Foundation\Converter\Type\TsRange';
break;
default:
$type = Type::BUILTIN_TYPE_OBJECT;
Expand Down

0 comments on commit 2ba664d

Please sign in to comment.