Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
17 Aug 2026

Pull Request resolves # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

when you add filter="int" it is run through cleanInt libraries\vendor\joomla\filter\src\InputFilter.php

when you add filter="integer" then its cleanInteger which is just an alias for cleanInt

We have 28 instances of int and 508 of integer

I find this inconsistency confusing. I understand that both versions work but I wasted quite some time establishing that for myself

This PR standardises on using integer

Testing Instructions

code review and passing the tests should be enough as this change is just for consistency

Actual result BEFORE applying this Pull Request

We have 28 instances of int

Expected result AFTER applying this Pull Request

We have instances of int

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar brianteeman brianteeman - open - 17 Aug 2026
avatar brianteeman brianteeman - change - 17 Aug 2026
Status New ⇒ Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Aug 2026
Category ⇒ Administration com_content com_menus Front End Plugins
avatar QuyTon QuyTon - test_item - 18 Aug 2026 - Tested successfully
avatar QuyTon
QuyTon - comment - 18 Aug 2026

I have tested this item ✅ successfully on d4a1852


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48262.

avatar QuyTon
QuyTon - comment - 18 Aug 2026

I have tested this item ✅ successfully on d4a1852


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48262.

avatar krishnagandhicode
krishnagandhicode - comment - 18 Aug 2026

We have 28 instances of int and 508 of integer

The diff shows 29 instances changed, not 28. maybe you missed one ;-)

Expected result AFTER applying this Pull Request
We have instances of int

you mean "0" instances. right ?

avatar joomdonation
joomdonation - comment - 20 Aug 2026

Not a big thing but wouldn't it make more sense if we use filter="int" instead of filter="integer" for the following reasons:

  • cleanInteger is an alias of cleanInt, so filter="int" would be faster
  • PHP core also prefer int over integer (int is valid type, is_integer is deprecated in PHP 8.6)
avatar brianteeman
brianteeman - comment - 20 Aug 2026

@joomdonation that was my thought to - especially as integer is an alias to int - but I asked for advice from @HLeithner and he suggested to do it this way

Add a Comment

Login with GitHub to post a comment