After a discussion with @spicyj we decided to keep the warning even though the functions will throw in production. The warning is the only way to learn about that.

We should also document how to pass the secret through in case you know what you're doing.

PropTypes.objectOf(PropTypes.symbol),
        Symbol(),
        'Invalid prop `testProp` of type `symbol` supplied to ' +
        '`testComponent`, expected an object.'
      );
    });
    it('should not warn when passing an empty object', () => {
      typeCheckPass(PropTypes.objectOf(PropTypes.number), {});
    });
    it('should be implicitly optional and not warn without values', () => {
      typeCheckPass(PropTypes.objectOf(PropTypes.number), null);
      typeCheckPass(PropTypes.objectOf(PropTypes.number), undefined);
    });
    it('should warn for missing required values', () => {
      typeCheckFailRequiredValues(
        PropTypes.objectOf(PropTypes.number).isRequired
      );
    });
  });
  describe('OneOf Types', () => {
    it('should warn but not error for invalid argument', () => {
      spyOn(console, 'error');
      PropTypes.oneOf('red', 'blue');
      expectDev(console.error).toHaveBeenCalled();
      expectDev(console.error.calls.argsFor(0)[0])
        .toContain('Invalid argument supplied to oneOf, expected an instance of array.');
      typeCheckPass(PropTypes.oneOf('red', 'blue'), 'red');
    });
    it('should warn for invalid values', () => {
      typeCheckFail(