serafimarts / properties Goto Github PK
View Code? Open in Web Editor NEWPHP properties implementation
License: MIT License
PHP properties implementation
License: MIT License
Привет, похоже что не работает, когда класс имлементирует какой-либо интерфейс. Проблема была с кешом. Ниже описал в чём дело.
Мб стоит добавить метод для удаления кеша, или автоматическую инвалидацию?
railt/parser мертв, да здравствует phplrt/parser!
TypeError
class http://php.net/manual/en/class.typeerror.phpValue for property Class::$property must be of the type N, M given
I think i can do it.
You need this:
$object->some = 1; // lets make it integer
$object->some = "string"; // error: 'some' can be integer only?
or what?
Try to pull last version and run phpunit. I get the following output:
PHPUnit 5.2.9 by Sebastian Bergmann and contributors.
.....................EE.. 25 / 25 (100%)
Time: 89 ms, Memory: 8.00Mb
There were 2 errors:
1) Serafim\Properties\Unit\WriteTypeHintsTestCase::testWritePrimitives
TypeError: Value for property Serafim\Properties\Unit\Stub\WritableTypeHints::objectValue must be of the type object, object given
/home/taras/work/github.com/Properties/src/Properties.php:90
/home/taras/work/github.com/Properties/tests/WriteTypeHintsTestCase.php:41
2) Serafim\Properties\Unit\WriteTypeHintsTestCase::testConditionalTypes
TypeError: Value for property Serafim\Properties\Unit\Stub\WritableTypeHints::arrayInstanceOfSelfValue must be of the type WritableTypeHints[], array given
/home/taras/work/github.com/Properties/src/Properties.php:90
/home/taras/work/github.com/Properties/tests/WriteTypeHintsTestCase.php:69
FAILURES!
Tests: 25, Assertions: 63, Errors: 2.
:)
must be of the type object, object given
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.