Skip to content

Conversation

@iggyvolz
Copy link

https://www.php-fig.org/psr/psr-0/:

Deprecated - As of 2014-10-21 PSR-0 has been marked as deprecated. PSR-4 is now recommended as an alternative.

Used the PHPStorm refactoring tools as well as some manual labor to move all the classes to their correct location and use namespaces rather than underscores. Also uses Composer's autoloader rather than the ad-hoc one.

Definitely needs some more testing to make sure it covers every possible class name access - there are some places where classes were accessed by strings but I think I got all of those.

PDF renderer removed in the process, as per #60 (comment).

Feel free to close if this is too ambitious or too much change all at once.

"ext-sqlite3": "*",
"ext-xmlreader": "*"
"ext-xmlreader": "*",
"ext-simplexml": "*"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimpleXML is used in phpdotnet\phd\Package\IDE\API so I added that here

namespace phpdotnet\phd\Options;

interface Options_Interface {
interface OptionsInterface {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name here should be "Interface" which is not a valid class name

@@ -1,7 +1,12 @@
<?php
namespace phpdotnet\phd;
namespace phpdotnet\phd\Format\_Abstract;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Abstract cannot be a namespace part - using _Abstract here

* @link https://doc.php.net/phd/
*/
class Package_IDE_API_Function
class _Function
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function is not a valid PHP class name

@Girgias
Copy link
Member

Girgias commented Dec 24, 2021

See #52

@iggyvolz
Copy link
Author

See #52

Whoops not sure how I missed that, sorry for the noise.

@iggyvolz iggyvolz closed this Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants