Skip to content

u/nCrazed

In this archive from Feb 2011 to May 2015

1
posts
196
comments
1
media
616
score

That won't work since each instance returned would be from a different class since they're anonymous. And you won't be able to type-hint them anywhere either.

Wouldn't you be type-hinting the interface that the anonymous class implements making the exact type of the class irelevant?

1 points

Isn't this BC break trivial to fix with grep and some regex magic? Sure, there might be some corner cases and you'll have to modify the fix in order to apply it to different projects, but if you don't have a good enough test coverage to catch any issues that might result from doing this, you have bigger problems to worry about.

5 points

When I last installed PHP on arch the "AddHandler" line was not necessary and I still don't have it in my httpd.conf.

But if you still want it, the correct way to set it would be:

AddHandler php5-script .php

Note the dote

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.