1
0
mirror of https://github.com/php/phd.git synced 2026-03-24 07:02:07 +01:00

18 Commits

Author SHA1 Message Date
Louis-Arnaud
5d705c2676 Replace deprecated SplObjectStorage::attach() usage for PHP 8.5 (#223)
* Replace deprecated SplObjectStorage::attach()/detach() usage for PHP 8.5

---------

Co-authored-by: lacatoire <louis-arnaud.catoire@external.drivalia.com>
2025-12-12 19:21:31 +01:00
Kamil Tekiela
6de3ff754a Add proper types 2024-10-21 15:19:45 +01:00
Kamil Tekiela
01709360c3 Align parameter names
Update Format.php
2024-10-21 15:19:45 +01:00
haszi
e5b8bf35a9 Remove file ending comment blocks (#92)
Co-authored-by: haszi <haszika80@gmail.com>
2024-02-08 12:46:21 +00:00
Peter Cowburn
9544a6b72b make objectstorage::attach() compatible with splobjectstorage::attach()
PhD's ObjectStorage::attach() method does not respect the declared
return type from its parent class (SplObjectStorage): the latter
declares the return type as void.

It is currently mitigated via the #[\ReturnTypeWillChange] attribute.

This commit removes that attribute and instead aligns the return type
declaration (to return void), with associated fixes to not return
anything and not try to use a return value.

Since declaring a void return type is only allowed as of PHP 7.1.0, this
raises the minimum required PHP version for phd to that version. Since
PHP 7.1 is super ancient and even PHP 7.3 will become EOL in a few weeks
(at the time of writing) I'm making the executive decision that
requiring 7.1 is fine. :-)
2021-10-29 23:34:41 +01:00
Larry Garfield
05e540f818 Whitespace fixes
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-10-28 12:00:02 -05:00
Larry Garfield
6c1af76a46 Fix PHP 8.1 deprecations. 2021-10-19 16:14:51 -05:00
Peter Kokot
3564283891 Sync final newlines
This patch adds some missing newlines and trims multiple redundant
newlines into a single newline.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-02 06:23:33 +02:00
Sobak
aecae4e2c3 Eliminate $ comments 2015-03-09 06:20:39 +01:00
Moacir de Oliveira
b0e35d28db InvalidArgumentException is not in our namespace
Signed-off-by: Moacir de Oliveira <moacir@php.net>
2012-08-18 17:31:37 -04:00
Christian Weiske
87140b3520 remove legacy code that is not needed anymore; move Reader storage to ReaderKeeper 2009-10-16 17:43:56 +00:00
Hannes Magnusson
9bacdbd09b - Add missing $Id$ tags and vim modelines
- Remove useless closing tags
2009-07-30 16:56:01 +00:00
Hannes Magnusson
48d711b15e - Fix "last indexed" timestamp
- Don't explicitly commit the index, do it when finalizing it
- Don't talk about .manual.xml, just say "Docbook file"
- Simplify attaching formats
- Kill commented out method
2009-07-28 21:35:15 +00:00
Moacir de Oliveira Miranda Júnior
409c65ce54 fixing class names bugs 2009-06-20 06:58:48 +00:00
Christian Weiske
ff5cc4ebcf Add namespace in (hopefully) every class. This is fully untested!
I probably confused Format_Legacy with Format in some files.
2009-06-19 21:48:54 +00:00
Moacir de Oliveira Miranda Júnior
b7909c572d Merging from Enterprise 2009-06-13 11:18:08 +00:00
Hannes Magnusson
4fe8c61922 Revert. This should had gone into the PHD_ENTERPRISE branch! 2008-07-28 22:47:15 +00:00
Hannes Magnusson
c665ca06ca Initial commit of Enterprise PhD 2.0 XP, build#1337 2008-07-28 22:40:58 +00:00