The Nette team is proud to announce the final release of Nette
3.0.0. We’ve been working on this release for two years and now we are happy
to say: it is finished.
Nette is the world's first full-stack framework that uses major
benefits of PHP 7.1:
- full usage of scalar type hints
- full usage of return type hints
- all files have declare(strict_types=1)
I didn't write blog article about releasing the 2.1.0. The main purpose for
that release was to drop support for PHP below 7.1. Nobody complained so it
looks like as a good step.
New in Tester
The 2.1.0 version brought one small feature. The
parameter is repeatable, so you can mark separated directories for coverage
The 2.2.0 version brings few minor fixes and mainly two new features.
Tester\Expect objects allows you to test “random” items
in more complex data structures. You can use them in
methods. For example, you test a method which creates a new user and returns its
attributes as an array:
'id' => 123,
'username' => 'milo',
'password' => Expect::match('%h%'),
'created_at' => Expect::type(DateTimeImmutable::class),
], User::create(123, 'milo', 'RandomPaSsWoRd'));
Until now, you had to unset these “random” items before assertion or test
array items one by one. The usage of
Expect is clearer with less
effort to type.
You can read more about
Expect in documentation.
The second new feature is support for PCOV. I didn't find what that
acronym (or is it a word?) means, but it is an PHP extension especially written
to provide code coverage functionality. So it is fast. Now, Tester supports
three code coverage engines and question arose about which one to choose when
more available. I defined following priority:
- PCOV, because it is a specialized tool
- PHPDBG SAPI, because I suppose that the code coverage is the only reason to
Many thanks to all contributors!
Speed up your websites
As you know, Nette Framework has excellent support for easy AJAX websites. So
it's a shame that lots of sites built on Nette does not use this opportunity to
speed up the web. The library of Vojta Dobeše nette.ajax.js
which is currently a little bit old. Another help recently came up the Nittro, which grew up to
version 2. Recently we have the Naja library.
Is it possible to try Nette Database without the whole framework, but with
the beauty of DI and Tracy? Yes. New example in git
Support for PHP 7.2 is here!
For all who doesn't know about new type of versions of Nette Framewor 2.4,
there is no planed 2.4.x version. All packages have their maintenance version,
but Framework doesn’t have. There is build
from (2017–08–29) with release notes, that is full compatible with
incomming PHP version 7.2
We spent summer together at an extraordinary meeting Nette Camp and two excursions to Czech
breweries. Definitely follow up the events next year. It's an interesting way
to meet in an offline world. In September, the
90th anniversary Last Saturday is waiting for us.
How to get rid of PhpStorm alerts on “undefined fields” and activate the
code completion for
$this->template in presenters?
So how to change this view with the underlined
abc and the empty