Skip to content

[4] stubGenerator.php generates stubs for non-existing classes #35137

@PhilETaylor

Description

@PhilETaylor

Steps to reproduce the issue

run build/stubGenerator.php
inspect stubs.php

Expected result

All the classes in that file should exist, else you are telling developers and IDE's to allow auto-completion to non-existing classes

Actual result

For example the following are all invalid, as the class that is on the right of extends no longer exists in Joomla:
(There are a lot! This is just an example from near the bottom of the file)

/**
 * @deprecated 5.0 Use Joomla\CMS\Filesystem\Wrapper\FileWrapper instead.
 */
class JFilesystemWrapperFile extends Joomla\CMS\Filesystem\Wrapper\FileWrapper {}

/**
 * @deprecated 5.0 Use Joomla\CMS\Filesystem\Wrapper\FolderWrapper instead.
 */
class JFilesystemWrapperFolder extends Joomla\CMS\Filesystem\Wrapper\FolderWrapper {}

/**
 * @deprecated 5.0 Use Joomla\CMS\Filesystem\Wrapper\PathWrapper instead.
 */
class JFilesystemWrapperPath extends Joomla\CMS\Filesystem\Wrapper\PathWrapper {}

/**
 * @deprecated 5.0 Use Joomla\Image\Filter\Backgroundfill instead.
 */
class JImageFilterBackgroundfill extends Joomla\Image\Filter\Backgroundfill {}

/**
 * @deprecated 5.0 Use Joomla\Image\Filter\Brightness instead.
 */
class JImageFilterBrightness extends Joomla\Image\Filter\Brightness {}

/**
 * @deprecated 5.0 Use Joomla\Image\Filter\Contrast instead.
 */
class JImageFilterContrast extends Joomla\Image\Filter\Contrast {}

/**
 * @deprecated 5.0 Use Joomla\Image\Filter\Edgedetect instead.
 */
class JImageFilterEdgedetect extends Joomla\Image\Filter\Edgedetect {}

/**
 * @deprecated 5.0 Use Joomla\Image\Filter\Emboss instead.
 */
class JImageFilterEmboss extends Joomla\Image\Filter\Emboss {}

/**
 * @deprecated 5.0 Use Joomla\Image\Filter\Negate instead.
 */
class JImageFilterNegate extends Joomla\Image\Filter\Negate {}

/**
 * @deprecated 5.0 Use Joomla\Image\Filter\Sketchy instead.
 */
class JImageFilterSketchy extends Joomla\Image\Filter\Sketchy {}

/**
 * @deprecated 5.0 Use Joomla\Image\Filter\Smooth instead.
 */
class JImageFilterSmooth extends Joomla\Image\Filter\Smooth {}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions