under php 7.011 ubuntu 14
can't not get result or formProperties
<?php
namespace Rocks; use Phalcon\Annotations\Adapter\Memory as Annotations;
class Test { /*
- @Type(hidden)
-
@var integer */ public $id;
/**
- @Type(number)
-
@var integer */ public $code;
/**
- @Type(text)
-
@var string */ public $name;
/**
- @Type(select)
- @Option("android":"Android")
- @Option("iphone":"IPhone")
-
@var string */ public $platform;
/**
- @Type(textarea)
-
@var text */ public $description;
/**
- @Type(text)
-
@var string */ public $url;
public function show() { $reader = new Annotations(); $formProperties = $reader->getProperties(get_class($this)); echo var_dump($formProperties); return; } }
$test=new Test(); $test->show();