Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292377

Wrong type for $project argument in locale.batch.inc functions

$
0
0

Problem/Motivation

The docblocks for locale_translation_batch_fetch_download() and locale_translation_batch_fetch_import() say the $project argument is an object but it seems this argument is a string.

Steps to reproduce

Call locale_translation_batch_fetch_download() with an object:

locale_translation_batch_fetch_download(new stdClass(), 'en', $context);

It fails with this error:

   TypeError  Cannot access offset of type stdClass on array.

Proposed resolution

Document the correct type in the docblock.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 292377

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>