[Policy] Do not use dev-master as a dependency for composer packages

Created on 27 March 2018, about 7 years ago
Updated 14 May 2025, 4 days ago

.. or if we do then depend on a specific commit.

Drupal core currently depends on various `-dev` versions in its composer.json.

We run into a problem when we run field UI tests which caused by a recent change in behat/mink.

Storytime:
This seems to be a core issue. The `FieldUITestTrait::fieldUIAddNewField()` function calls an `assertRaw()`, and passes a `TranslatableMarkup` to it. `assertRaw()` is a legacy wrapper for `assertSession()->responseContains()`. `responseContains()` calls `stripos()` which encountering an object (which has `__toString()` defined), tries to convert it to `int` for some reason (just php things), and because that's not possible, the test fails.

http://php.net/manual/en/function.stripos.php

If needle is not a string, it is converted to an integer and applied as the ordinal value of a character.

My colleague created a pull request to fix this problem in Mink: https://github.com/minkphp/Mink/pull/760

🌱 Plan
Status

Needs work

Version

11.0 🔥

Component

composer

Created by

🇭🇺Hungary mxr576 Hungary

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024