krakjoe

krakjoe

Contributor Directory

RFCs

Language and policy proposals from this contributor
RFCs are part of the process by which decisions are made about PHP. For more information about the RFC process as well as viewing a full list of RFCs please visit the RFC section.

First-class callable syntax

Author
Target
8.1
This RFC proposes the introduction of a first-class callable syntax, which supersedes existing encodings using strings and arrays. The advantage is that the new...

Introduce first-class callable syntax as proposed?

Yes
No
Yes
44 Votes (100%)
No
0 Votes (0%)

Anonymous Classes

Author
Target
7.0
For some time PHP has featured anonymous function support in the shape of Closures; this patch introduces the same kind of functionality for objects of an anony...

Anonymous Classes

Yes
No
Yes
50 Votes (96%)
No
2 Votes (4%)

Expectations

Author
Target
7.0
The assertion statement has the prototype:

Merge changes into master?

Yes, with custom exceptions
Yes, without custom exceptions
No
Yes, with custom exceptions
29 Votes (66%)
Yes, without custom exceptions
14 Votes (32%)
No
1 Votes (2%)

Sealed Classes

Author
Target
8.2
The purpose of inheritance is code reuse, for when you have a class that shares common functionality, and you want others to be able to extend it and make use o...

Accept sealed classes RFC?

Yes
No
Yes
16 Votes (59%)
No
11 Votes (41%)

Which syntax option do you prefer?

`sealed` + `permits`
`permits` only
`for`
`sealed` + `permits`
12 Votes (44%)
`permits` only
15 Votes (56%)
`for`
0 Votes (0%)

Typed Properties

Author
Typed Properties allow for an optional keyword in the definition, after the visibility scope, which contains the type the property should allow.

Merge typed properties ?

Yes
No
Yes
34 Votes (60%)
No
23 Votes (40%)

Array Of

Author
This RFC proposes a syntax to add to improve type-hinting, allowing an array of that hinted type to be passed as an argument, thus improving readability of code...

Array Of Type Hinting

Yes
No
Yes
4 Votes (20%)
No
16 Votes (80%)

Nested Classes

Author
Following on from anonymous classes, this RFC proposes we support nested classes in PHP.