Skip to content

PHP 7.2 count warning#16840

Merged
mbabker merged 5 commits intojoomla:stagingfrom
Denitz:72-count-warning
Aug 6, 2017
Merged

PHP 7.2 count warning#16840
mbabker merged 5 commits intojoomla:stagingfrom
Denitz:72-count-warning

Conversation

@Denitz
Copy link
Copy Markdown
Contributor

@Denitz Denitz commented Jun 23, 2017

Summary of Changes

No need to count message queue elements.

Testing Instructions

Use PHP 7.2 with development error reporting.

Expected result

Nice Joomla

Actual result

PHP warning:

Warning: count(): Parameter must be an array or an object that implements Countable in \libraries\cms\application\cms.php on line 470

Denitz added 2 commits June 23, 2017 22:53
Warning: count(): Parameter must be an array or an object that implements Countable in \libraries\cms\application\cms.php on line 470
@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Jun 25, 2017

Based on the result from https://travis-ci.org/joomla/joomla-cms/jobs/236743260 which enabled a Travis build against PHP 7.2, this is a good fix.

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Jul 1, 2017

@Denitz just to be 100% sure can you update to the last staging branch? So travis run against PHP 7.2 and we can check the results?

izharaazmi added a commit to izharaazmi/joomla-cms that referenced this pull request Aug 9, 2017
* staging: (148 commits)
  Correcting non-escaped double quotes in en-GB.plg_sampledata_testing.ini (joomla#17455)
  Correct namespace reference (Fix joomla#17448)
  Correcting Jalali/Persian calendar popup (joomla#17432)
  Adding russian calendar language file (joomla#17443)
  Reset for dev
  Prepare 3.8 Beta release
  Fix covers tags
  Fix file paths
  Move library files to just libraries/src as it should be (joomla#17441)
  Add a default empty array for the session queue (joomla#16943)
  [3.8] Restructure version constants (joomla#16169)
  Adjusting copyright and versions and two remaining "sampledata" (joomla#17435)
  PHP 7.2 has branched, update Travis config to reflect
  PHP 7.2 count warning (joomla#16840)
  Enforce array for subform values (joomla#16733)
  System URL menu link (joomla#17419)
  Don't use array merge here. (joomla#17391)
  add the checked attribute (joomla#17336)
  [RFC] Mod sample data (joomla#7680)
  Rename Page to Menu Item (joomla#17409)
  ...
izharaazmi added a commit to izharaazmi/joomla-cms that referenced this pull request Aug 9, 2017
* staging: (148 commits)
  Correcting non-escaped double quotes in en-GB.plg_sampledata_testing.ini (joomla#17455)
  Correct namespace reference (Fix joomla#17448)
  Correcting Jalali/Persian calendar popup (joomla#17432)
  Adding russian calendar language file (joomla#17443)
  Reset for dev
  Prepare 3.8 Beta release
  Fix covers tags
  Fix file paths
  Move library files to just libraries/src as it should be (joomla#17441)
  Add a default empty array for the session queue (joomla#16943)
  [3.8] Restructure version constants (joomla#16169)
  Adjusting copyright and versions and two remaining "sampledata" (joomla#17435)
  PHP 7.2 has branched, update Travis config to reflect
  PHP 7.2 count warning (joomla#16840)
  Enforce array for subform values (joomla#16733)
  System URL menu link (joomla#17419)
  Don't use array merge here. (joomla#17391)
  add the checked attribute (joomla#17336)
  [RFC] Mod sample data (joomla#7680)
  Rename Page to Menu Item (joomla#17409)
  ...
@Denitz Denitz deleted the 72-count-warning branch January 11, 2019 08:32
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.

4 participants