14 Commits

Author SHA1 Message Date
kang
09003ff79e Standardize ArrayAccess::offsetExists() example (#2541) 2023-06-26 14:14:53 +01:00
Tim Düsterhus
6e69d9342e Use FQCN for native attributes (#2137)
* Use FQCN for native attributes

For attributes, it's non-obvious that they need to be imported with `use` or
referenced with their FQCN, because applying a non-existent attribute is not an
error.

Make the examples copy-and-paste safe by adding the leading backslash, as
already done for `#[\SensitiveParameterValue]`.
2023-01-04 16:20:00 +00:00
Máté Kocsis
ed312486ff Update ArrayAccess role attributes (#2066) 2022-12-11 23:23:10 +01:00
Jeremy Mikola
362f36f682 Remove backslash prefix for some ReturnTypeWillChange attributes (#1756)
These backslashes were previously added in 214335df7e and cfaa7659da.

Backslashes before ReturnTypeWillChange in deprecation messages were left as-is, since those are quoting actual output from PHP. See 081cf71ecb for those messages.
2022-08-18 13:46:21 -04:00
Christoph M. Becker
cfaa7659da Fix ArrayAccess::offsetExists() example for PHP 8.1+
The newly introduced tentative return types require us to specify
return types for the method implementation.  Since `mixed` is only
available as of PHP 8.0.0, we use the `ReturnTypeWillChange` attribute
to suppress the deprecation for now.

This includes user note 127108 (well, at least the relevant parts of
it).
2022-05-17 13:46:08 +02:00
othercorey
9e9e3c019b Remove abstract modifier from ArrayAccess methods (#838) 2021-08-05 10:22:42 +02:00
Christoph Michael Becker
86e6094e86 Use canonical type names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
Jakub Vrana
331fbfeac5 Use bool instead of boolean in return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343889 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 15:50:10 +00:00
Pieter Hordijk
b974378c8f Fixed small typo a -> an
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335590 c90b9560-bf6c-de11-be94-00142212c4b1
2015-01-03 17:00:22 +00:00
Peter Cowburn
723d92067d Corrected parameter type hints for ArrayAccess methods. Closes bug #49807
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@289713 c90b9560-bf6c-de11-be94-00142212c4b1
2009-10-17 14:15:48 +00:00
Torben Wilson
af4410a7e1 Normalized the sgml-default-dtd-file local-variable line for those
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Nilgün Belma Bugüner
04077dd209 fixed properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283798 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 06:17:58 +00:00
Richard Quadling
0f4fa3b6a7 Typos. #47342
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@275411 c90b9560-bf6c-de11-be94-00142212c4b1
2009-02-09 12:36:00 +00:00
Hannes Magnusson
4d149ee2d5 Initial commit
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@270045 c90b9560-bf6c-de11-be94-00142212c4b1
2008-11-28 21:01:43 +00:00