mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
After we are sure `n` is greater than zero, it is safe to cast to unsigned.
Closes #23354
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/23354 from tempoz:tempoz-fix-signedness-error-in-upb-io-string-header 4d323c37d4
PiperOrigin-RevId: 805351826
22 lines
649 B
PHP
22 lines
649 B
PHP
<?php
|
|
|
|
require_once('test_base.php');
|
|
require_once('test_util.php');
|
|
|
|
class ComposerJsonTest extends TestBase
|
|
{
|
|
public function testComposerJsonDistIsUpToDate()
|
|
{
|
|
$composerJson = json_decode(file_get_contents(__DIR__ . '/../composer.json'), true);
|
|
$composerJsonDist = json_decode(file_get_contents(__DIR__ . '/../composer.json.dist'), true);
|
|
|
|
// We don't want the subrepo to have "scripts" or "config"
|
|
unset(
|
|
$composerJson['scripts'],
|
|
$composerJson['config'],
|
|
$composerJson['autoload-dev']
|
|
);
|
|
|
|
$this->assertEquals($composerJson, $composerJsonDist);
|
|
}
|
|
}
|